Guest User

Untitled

a guest
Oct 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # This is an example configuration for Docker Compose. Make sure to atleast update
  2. # the cookie secret & postgres database password.
  3. #
  4. # Some other recommendations:
  5. # 1. To persist Postgres data, assign it a volume host location.
  6. # 2. Split the worker service to adhoc workers and scheduled queries workers.
  7. version: '2'
  8. services:
  9. server:
  10. image: redash/redash:latest
  11. command: server
  12. ports:
  13. - "5000:5000"
  14. environment:
  15. PYTHONUNBUFFERED: 0
  16. REDASH_LOG_LEVEL: "DEBUG"
  17. REDASH_REDIS_URL: "redis://192.168.86.25:6379/0"
  18. REDASH_DATABASE_URL: 'postgresql://redash:PASSWORD@192.168.86.25:5432/redash'
  19. REDASH_COOKIE_SECRET: veryverysecret
  20. REDASH_WEB_WORKERS: 4
  21. restart: always
  22. worker:
  23. image: redash/redash:latest
  24. command: scheduler
  25. environment:
  26. PYTHONUNBUFFERED: 0
  27. REDASH_LOG_LEVEL: "INFO"
  28. REDASH_REDIS_URL: "redis://192.168.86.25:6379/0"
  29. REDASH_DATABASE_URL: 'postgresql://redash:PASSWORD@192.168.86.25:5432/redash'
  30. QUEUES: "queries,scheduled_queries,celery"
  31. WORKERS_COUNT: 2
  32. restart: always
Add Comment
Please, Sign In to add comment