Files
chat/deploy/docker-compose.yml

37 lines
590 B
YAML

version: '3.8'
services:
backend:
build:
context: ..
dockerfile: deploy/Dockerfile.backend
ports:
- "4000:4000"
restart: always
env_file:
- ../.env
environment:
- NODE_ENV=production
depends_on:
- mongo
frontend:
build:
context: ..
dockerfile: deploy/Dockerfile.frontend
ports:
- "8443:8443"
restart: always
depends_on:
- backend
mongo:
image: mongo:6
restart: unless-stopped
volumes:
- mongo-data:/data/db
ports:
- "27017:27017"
volumes:
mongo-data: