services: app: image: node:20-alpine working_dir: /app command: sh -c "npm install && npx next dev" volumes: - .:/app environment: NODE_ENV: development # Docker Internal Communication DIRECTUS_URL: http://directus:8055 ports: - "3000:3000" labels: - "traefik.enable=true" # Clear all production-related TLS/Middleware settings for the main routers - "traefik.http.routers.klz-cables.entrypoints=web" - "traefik.http.routers.klz-cables.rule=Host(`klz.localhost`)" - "traefik.http.routers.klz-cables.tls=false" - "traefik.http.routers.klz-cables.middlewares=" - "traefik.http.routers.klz-cables-web.entrypoints=web" - "traefik.http.routers.klz-cables-web.rule=Host(`klz.localhost`)" - "traefik.http.routers.klz-cables-web.middlewares=" directus: labels: - "traefik.enable=true" - "traefik.http.routers.klz-cables-directus.entrypoints=web" - "traefik.http.routers.klz-cables-directus.rule=Host(`cms.klz.localhost`)" - "traefik.http.routers.klz-cables-directus.tls=false" - "traefik.http.routers.klz-cables-directus.middlewares=" ports: - "8055:8055" environment: PUBLIC_URL: http://cms.klz.localhost