docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "3.8"
  2. x-environment: &default-environment
  3. DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
  4. SECRET_KEY: change_me
  5. ENABLE_ORGANIZATION_CREATION: "true"
  6. ENABLE_TEST_API: "true"
  7. DEBUG: "true"
  8. EMAIL_BACKEND: "django.core.mail.backends.console.EmailBackend"
  9. ENABLE_OBSERVABILITY_API: "true"
  10. CELERY_WORKER_CONCURRENCY: 1
  11. x-depends_on: &default-depends_on
  12. - postgres
  13. - redis
  14. x-volumes: &default-volumes
  15. - .:/code
  16. services:
  17. postgres:
  18. image: postgres:15
  19. environment:
  20. POSTGRES_HOST_AUTH_METHOD: "trust"
  21. redis:
  22. image: redis
  23. web:
  24. build: .
  25. user: root # Allows for usage of ipdb, apt, etc in dev
  26. command: ./manage.py runserver 0.0.0.0:8000
  27. depends_on: *default-depends_on
  28. volumes: *default-volumes
  29. ports:
  30. - "8000:8000"
  31. environment: *default-environment
  32. worker:
  33. build: .
  34. user: root
  35. command: bin/run-celery-with-beat.sh
  36. depends_on: *default-depends_on
  37. volumes: *default-volumes
  38. environment: *default-environment
  39. #flower:
  40. # build: .
  41. # command: bin/run-flower.sh
  42. # depends_on: *default-depends_on
  43. # volumes: *default-volumes
  44. # environment: *default-environment
  45. # ports:
  46. # - 5555:5555