services: db: image: postgres:15-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: password POSTGRES_DB: postgres ports: - "5432:5432" wwv-cloud: build: context: ../.. dockerfile: Dockerfile args: - NEXT_PUBLIC_WWV_EDITION=cloud restart: always environment: NEXT_PUBLIC_WWV_EDITION: cloud DATABASE_URL: postgresql://postgres:password@db:5432/postgres NEXT_PUBLIC_SUPABASE_URL: ${SUPABASE_URL:-http://dummy} NEXT_PUBLIC_SUPABASE_ANON_KEY: ${SUPABASE_ANON_KEY:-dummy} SUPABASE_SERVICE_ROLE_KEY: ${SUPABASE_SERVICE_ROLE_KEY:-dummy} AUTH_SECRET: ${AUTH_SECRET:-dummy_secret_for_local_testing_only_1234567890} ports: - "3001:3000" labels: - "traefik.enable=true" - "traefik.http.routers.wwv.rule=HostRegexp(`{user:[a-z0-9-]+}.app.worldwideview.dev`) || Host(`app.worldwideview.dev`) || Host(`localhost`) || HostRegexp(`{user:[a-z0-9-]+}.localhost`)" - "traefik.http.routers.wwv.entrypoints=web,websecure" # - "traefik.http.routers.wwv.tls.certresolver=letsencrypt" - "traefik.http.services.wwv.loadbalancer.server.port=3000" depends_on: - db traefik: image: traefik:v3.0 command: - "--api.insecure=true" - "--providers.docker=true" - "--entrypoints.web.address=:80" - "--entrypoints.websecure.address=:443" ports: - "80:80" - "443:443" volumes: - "/var/run/docker.sock:/var/run/docker.sock:ro"