Advertisement
avaaren

dfsd

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