Files
space-booking/docker-compose.yml
Claude Agent f6be0a8cfe fix(docker-compose): revert to bridge network for Docker Compose mode
Dokploy's Docker Compose option uses docker compose up (not stack deploy),
so bridge networks work correctly. Overlay was needed only for Stack mode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 08:05:46 +00:00

43 lines
1.1 KiB
YAML

version: "3.8"
services:
backend:
build: ./backend
restart: unless-stopped
environment:
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
- DATABASE_URL=sqlite:////data/space_booking.db
- FRONTEND_URL=${FRONTEND_URL:-http://localhost}
- SMTP_HOST=${SMTP_HOST:-localhost}
- SMTP_PORT=${SMTP_PORT:-1025}
- SMTP_ENABLED=${SMTP_ENABLED:-false}
volumes:
- backend_data:/data
- uploads_data:/app/uploads
networks:
- internal
frontend:
build: ./frontend
restart: unless-stopped
networks:
- internal
- dokploy-network
depends_on:
- backend
labels:
- "traefik.enable=true"
- "traefik.http.routers.space-booking.rule=Host(`${DOMAIN:-space-booking.roa.romfast.ro}`)"
- "traefik.http.routers.space-booking.tls=true"
- "traefik.http.services.space-booking.loadbalancer.server.port=80"
volumes:
backend_data:
uploads_data:
networks:
internal:
driver: bridge
dokploy-network:
external: true