compose.yaml 472 B

123456789101112131415161718192021
  1. # During build and run, set environment DOMAIN pointing
  2. # to publicly accessible domain where app will be hosted
  3. services:
  4. app:
  5. image: local/reflex-app
  6. build:
  7. context: .
  8. args:
  9. API_URL: https://${DOMAIN:-localhost}
  10. webserver:
  11. environment:
  12. DOMAIN: ${DOMAIN:-localhost}
  13. ports:
  14. - 443:443
  15. - 80:80 # for acme-challenge via HTTP
  16. build:
  17. context: .
  18. dockerfile: Caddy.Dockerfile
  19. depends_on:
  20. - app