version: '3.7'
volumes:
production_mongodb_data:
services:
nginx_container:
container_name: app_production_nginx
image: app_production_nginx:latest
restart: unless-stopped
build:
context: ./production/nginx
links:
- backend_container
ports:
- "80:80"
- "443:443"
volumes:
- ../frontend/:/usr/share/nginx/html/mysite.com/frontend
frontend_container:
container_name: app_production_frontend
image: app_production_frontend:latest
build:
context: ./production/frontend
volumes:
- ../frontend:/app/frontend
ports:
- "3050:3050"
restart: always
command: "npm run preview"
version: '3.7'
volumes:
production_mongodb_data:
services:
nginx_container:
container_name: app_production_nginx
image: app_production_nginx:latest
restart: unless-stopped
build:
context: ./production/nginx
links:
- backend_container
ports:
- "80:80"
- "443:443"
volumes:
- ../frontend/:/usr/share/nginx/html/mysite.com/frontend
frontend_container:
container_name: app_production_frontend
image: app_production_frontend:latest
build:
context: ./production/frontend
volumes:
- ../frontend:/app/frontend
ports:
- "3050:3050"
restart: always
command: "npm run preview"