docker-compose.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. x-depends_on: &default-depends_on
  15. - postgres
  16. - redis
  17. x-volumes: &default-volumes
  18. - .:/code
  19. services:
  20. postgres:
  21. image: postgres:17
  22. environment:
  23. POSTGRES_HOST_AUTH_METHOD: "trust"
  24. redis:
  25. image: valkey/valkey:8
  26. web:
  27. # Uncomment for breakpoint
  28. #stdin_open: true
  29. #tty: true
  30. build: .
  31. user: root # Allows for usage of ipdb, apt, etc in dev
  32. command: ./manage.py runserver 0.0.0.0:8000
  33. #command: python app.py
  34. #command: python -m gunicorn glitchtip.asgi:application -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0
  35. depends_on: *default-depends_on
  36. volumes: *default-volumes
  37. ports:
  38. - "8000:8000"
  39. environment: *default-environment
  40. worker:
  41. build: .
  42. user: root
  43. command: bin/run-celery-with-beat.sh
  44. depends_on: *default-depends_on
  45. volumes: *default-volumes
  46. environment: *default-environment