Advertisement
datheist

docker-compose.yml

Jul 28th, 2020
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. version: "3.7"
  2.  
  3. services:
  4. web:
  5. build:
  6. context: ./app
  7. dockerfile: Dockerfile.prod
  8. command: gunicorn fullstack_application.wsgi:application --bind 0.0.0.0:8000
  9. volumes:
  10. - static_volume:/home/app/web/static
  11. - media_volume:/home/app/web/media
  12. expose:
  13. - 8000
  14. env_file:
  15. - ./.env.prod
  16. depends_on:
  17. - db
  18. db:
  19. image: postgres:12.0-alpine
  20. volumes:
  21. - postgres_data:/var/lib/postgresql/data/
  22. env_file:
  23. - ./.env.prod.db
  24. nginx:
  25. build: ./nginx
  26. volumes:
  27. - static_volume:/home/app/web/static
  28. - media_volume:/home/app/web/media
  29. ports:
  30. - 1337:80
  31. depends_on:
  32. - web
  33. volumes:
  34. postgres_data:
  35. static_volume:
  36. media_volume:
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement