docker-compose.yaml 906 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. version: '3'
  2. services:
  3. router:
  4. container_name: router
  5. image: ghcr.io/apollographql/router:v1.27.0
  6. volumes:
  7. - ./prod-schema.graphql:/etc/config/supergraph.graphql:ro
  8. - ./router.yaml:/etc/config/configuration.yaml:ro
  9. command:
  10. [
  11. "-c",
  12. "/etc/config/configuration.yaml",
  13. "-s",
  14. "/etc/config/supergraph.graphql",
  15. "--log",
  16. "info",
  17. "--hot-reload",
  18. "--anonymous-telemetry-disabled",
  19. "--listen",
  20. "0.0.0.0:8080"
  21. ]
  22. ports:
  23. - "8080:8080"
  24. restart: unless-stopped
  25. craft.auth:
  26. container_name: craft.auth
  27. hostname: auth.craft
  28. image: ghcr.io/kimbeejay/craft-auth:0.0.2
  29. volumes:
  30. - ./auth.yaml:/etc/craft/auth.yaml:ro
  31. command:
  32. [
  33. "craft-auth",
  34. "-C", "/etc/craft/auth.yaml",
  35. "daemon", "-P", "3128"
  36. ]
  37. restart: unless-stopped