Advertisement
Guest User

Untitled

a guest
Aug 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. web:
  5. build:
  6. context: ./web
  7. args:
  8. - REQUIREMENTS_FILE=requirements_all.txt
  9. - REQUIREMENTS_SRC_PATH=requirements*.txt
  10. env_file: ./web/.env
  11. volumes:
  12. - ./web:/code
  13. depends_on:
  14. - postgres
  15. - redis
  16. command: newrelic-admin run-program python manage.py runserver 0.0.0.0:8000
  17.  
  18. nginx:
  19. build: ./nginx/
  20. ports:
  21. - "80:80"
  22. volumes:
  23. - ./web/static:/code/static
  24. depends_on:
  25. - web
  26.  
  27. postgres:
  28. image: postgres:latest
  29. ports:
  30. - "5432:5432"
  31. environment:
  32. - POSTGRES_USER=administrator
  33. - POSTGRES_PASSWORD=love_docker
  34. volumes:
  35. - /var/lib/postgresql/data/
  36.  
  37. redis:
  38. image: redis:latest
  39. ports:
  40. - "6379:6379"
  41. volumes:
  42. - /data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement