name: ${PROJECT} services: web-legacy: image: caddy:alpine volumes: - ./apps/web-legacy:/usr/share/caddy:ro labels: - "traefik.enable=true" - "traefik.http.routers.${PROJECT}_web_legacy.rule=Host(`web-legacy.${PROJECT}.localhost`)" - "traefik.http.services.${PROJECT}_web_legacy.loadbalancer.server.port=80" networks: - traefik web: build: context: ./apps/web target: ${ENV_MODE:-production} volumes: - ./apps/web:/app:cached - /app/node_modules labels: - "traefik.enable=true" - "traefik.http.routers.${PROJECT}_web.rule=Host(`web.${PROJECT}.localhost`)" - "traefik.http.services.${PROJECT}_web.loadbalancer.server.port=3000" networks: - traefik networks: traefik: external: true