docker-compose.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. x-environment: &default-environment
  2. DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
  3. SECRET_KEY: change_me
  4. ENABLE_ORGANIZATION_CREATION: "true"
  5. ENABLE_TEST_API: "true"
  6. DEBUG: "true"
  7. EMAIL_BACKEND: "django.core.mail.backends.console.EmailBackend"
  8. ENABLE_OBSERVABILITY_API: "true"
  9. #IS_LOAD_TEST: "true"
  10. CELERY_WORKER_CONCURRENCY: 4
  11. CELERY_WORKER_PREFETCH_MULTIPLIER: 25
  12. CELERY_WORKER_POOL: "threads"
  13. CELERY_SKIP_CHECKS: "true"
  14. PYTHONBREAKPOINT: "ipdb.set_trace"
  15. x-depends_on: &default-depends_on
  16. - postgres
  17. - redis
  18. x-volumes: &default-volumes
  19. - .:/code
  20. services:
  21. postgres:
  22. image: postgres:16
  23. environment:
  24. POSTGRES_HOST_AUTH_METHOD: "trust"
  25. redis:
  26. image: valkey/valkey:7.2
  27. web:
  28. build: .
  29. user: root # Allows for usage of ipdb, apt, etc in dev
  30. command: ./manage.py runserver 0.0.0.0:8000
  31. #command: python -m gunicorn glitchtip.asgi:application -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0
  32. depends_on: *default-depends_on
  33. volumes: *default-volumes
  34. ports:
  35. - "8000:8000"
  36. environment: *default-environment
  37. worker:
  38. build: .
  39. user: root
  40. command: bin/run-celery-with-beat.sh
  41. depends_on: *default-depends_on
  42. volumes: *default-volumes
  43. environment: *default-environment