33 lines
799 B
YAML
33 lines
799 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-production_game_secret_key_change_in_production_jwt}
|
|
- DATA_DIR=/app/data
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./frontend/js/data/sectors:/app/sectors:ro
|
|
networks:
|
|
- production-net
|
|
|
|
frontend:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${HOST_PORT:-8080}:80"
|
|
environment:
|
|
- DOMAIN_NAME=${DOMAIN_NAME:-localhost}
|
|
volumes:
|
|
- ./frontend:/usr/share/nginx/html:ro
|
|
- ./nginx/default.conf.template:/etc/nginx/templates/default.conf.template:ro
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- production-net
|
|
|
|
networks:
|
|
production-net:
|
|
driver: bridge
|