docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: '3'
  2. services:
  3. redis:
  4. image: redis:alpine
  5. restart: unless-stopped
  6. postgres:
  7. image: postgres:11-alpine
  8. restart: unless-stopped
  9. volumes:
  10. - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/db:/var/lib/postgresql/data
  11. sentry:
  12. image: sentry
  13. restart: unless-stopped
  14. env_file:
  15. - .env
  16. networks:
  17. - web
  18. - default
  19. labels:
  20. traefik.enable: "true"
  21. traefik.frontend.rule: "Host: sentry.${CHATONS_DOMAIN:-localhost}, www.sentry.${CHATONS_DOMAIN:-localhost}"
  22. environment:
  23. - SENTRY_REDIS_HOST=redis
  24. - SENTRY_POSTGRES_HOST=postgres
  25. - SENTRY_SERVER_EMAIL=sentry@${CHATONS_DOMAIN:-localhost}
  26. cron:
  27. command: "sentry run cron"
  28. image: sentry
  29. restart: unless-stopped
  30. env_file:
  31. - .env
  32. environment:
  33. - SENTRY_REDIS_HOST=redis
  34. - SENTRY_POSTGRES_HOST=postgres
  35. worker:
  36. command: "sentry run worker"
  37. image: sentry
  38. restart: unless-stopped
  39. env_file:
  40. - .env
  41. environment:
  42. - SENTRY_REDIS_HOST=redis
  43. - SENTRY_POSTGRES_HOST=postgres
  44. networks:
  45. web:
  46. external: true