Files
space-booking/docker-compose.yml
Claude Agent eaf6b1fbaf fix(docker-compose): use overlay network for Swarm compatibility
Dokploy uses Docker Swarm - bridge networks don't work across
Swarm services. Changed internal network to overlay+attachable.

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

44 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: overlay
attachable: true
dokploy-network:
external: true