43 lines
956 B
YAML
43 lines
956 B
YAML
services:
|
|
observatory-simulation:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: observatory-sim
|
|
ports:
|
|
- "3005:3005"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3005
|
|
restart: unless-stopped
|
|
networks:
|
|
- observatory-net
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.observatory.rule=Host(`observatory.local`)"
|
|
- "traefik.http.services.observatory.loadbalancer.server.port=3005"
|
|
|
|
# Optional: Nginx Reverse Proxy für Production
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: observatory-nginx
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./ssl:/etc/nginx/ssl:ro
|
|
depends_on:
|
|
- observatory-simulation
|
|
networks:
|
|
- observatory-net
|
|
profiles:
|
|
- production
|
|
|
|
networks:
|
|
observatory-net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
observatory-data:
|
|
driver: local |