compose.prod.yaml 545 B

12345678910111213141516171819202122232425
  1. # Use this override file to run the app in prod mode with postgres and redis
  2. # docker compose -f compose.yaml -f compose.prod.yaml up -d
  3. services:
  4. db:
  5. image: postgres
  6. restart: always
  7. environment:
  8. POSTGRES_PASSWORD: secret
  9. volumes:
  10. - postgres-data:/var/lib/postgresql/data
  11. redis:
  12. image: redis
  13. restart: always
  14. app:
  15. environment:
  16. DB_URL: postgresql+psycopg://postgres:secret@db/postgres
  17. REDIS_URL: redis://redis:6379
  18. depends_on:
  19. - db
  20. - redis
  21. volumes:
  22. postgres-data: