Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1.  
  2. version: '3'
  3.  
  4. services:
  5. db:
  6. image: postgres:9.6.5
  7. volumes:
  8. - postgres_data:/var/lib/postgresql/data/
  9. redis:
  10. image: "redis:alpine"
  11. web:
  12. build: .
  13. command: bash -c "python /code/manage.py migrate --noinput && python /code/manage.py runserver 0.0.0.0:8000"
  14. volumes:
  15. - .:/code
  16. ports:
  17. - "8000:8000"
  18. depends_on:
  19. - db
  20. - redis
  21. celery:
  22. build: .
  23. command: celery -A proj worker -l info
  24. volumes:
  25. - .:/code
  26. depends_on:
  27. - db
  28. - redis
  29. celery-beat:
  30. build: .
  31. command: celery -A proj beat -l info
  32. volumes:
  33. - .:/code
  34. depends_on:
  35. - db
  36. - redis
  37.  
  38. volumes:
  39. postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement