# During build and run, set environment DOMAIN pointing # to publicly accessible domain where app will be hosted services: app: image: local/reflex-app build: context: . args: API_URL: https://${DOMAIN:-localhost} webserver: environment: DOMAIN: ${DOMAIN:-localhost} ports: - 443:443 - 80:80 # for acme-challenge via HTTP build: context: . dockerfile: Caddy.Dockerfile depends_on: - app