version: "3.3" services: proxy: image: traefik:v2.3 volumes: - /var/run/docker.sock:/var/run/docker.sock ports: - "80:80" - "8090:8080" # Duplicate the command from docker-compose.yml to add --api.insecure=true command: # Enable Docker in Traefik, so that it reads labels from Docker services - --providers.docker # Add a constraint to only use services with the label for this stack - --providers.docker.constraints=Label(`traefik.constraint-label`, `traefik-public`) # Do not expose all Docker services, only the ones explicitly exposed - --providers.docker.exposedbydefault=false # Create an entrypoint "http" listening on port 80 - --entrypoints.http.address=:80 # Create an entrypoint "https" listening on port 443 - --entrypoints.https.address=:443 # Enable the access log, with HTTP requests - --accesslog # Enable the Traefik log, for configurations and errors - --log # Enable debug logging for local development - --log.level=DEBUG # Enable the Dashboard and API - --api # Enable the Dashboard and API in insecure mode for local development - --api.insecure=true labels: # Enable Traefik for this service, to make it available in the public network - traefik.enable=true - traefik.constraint-label=traefik-public # Dummy https-redirect middleware that doesn't really redirect, only to # allow running it locally - traefik.http.middlewares.https-redirect.contenttype.autodetect=false db: restart: "no" ports: - "5432:5432" adminer: restart: "no" ports: - "8080:8080" queue: restart: "no" ports: - "5671:5671" - "5672:5672" - "15672:15672" - "15671:15671" flower: restart: "no" ports: - "5555:5555" backend: restart: "no" ports: - "8888:8888" volumes: - ./backend/:/app build: context: ./backend dockerfile: backend.dockerfile args: INSTALL_DEV: ${INSTALL_DEV-true} # command: sleep infinity # Infinite loop to keep container alive doing nothing command: /start-reload.sh celeryworker: restart: "no" volumes: - ./backend/:/app environment: - RUN=celery worker -A app.worker -l info -Q main-queue -c 1 build: context: ./backend dockerfile: celeryworker.dockerfile args: INSTALL_DEV: ${INSTALL_DEV-true} frontend: restart: "no" build: context: ./frontend args: - VITE_API_URL=http://${DOMAIN?Variable not set} - NODE_ENV=development networks: traefik-public: # For local dev, don't expect an external Traefik network external: false