Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. version: '2'
  2. volumes:
  3. my_data:
  4. services:
  5. db:
  6. build:
  7. context: ../../
  8. dockerfile: myenv/docker/postgres/Dockerfile
  9. image: myapp_db
  10. volumes:
  11. - db_data:/sss/postgresql/data/
  12. expose:
  13. - '5432'
  14. app:
  15. build:
  16. context: ../../
  17. dockerfile: myenv/docker/app/Dockerfile
  18. image: myapp_app
  19. # need to wait for db. gunicorn ip 0.0.0.0
  20. command: /wait_for_it.sh db:5432 -t 0 -- gunicorn --workers 8 --timeout 120 --worker-class gaiohttp -b 0.0.0.0:8000 myapp.wsgi
  21. volumes:
  22. - my_data:/data
  23. - /logs
  24. expose:
  25. - "8000"
  26. depends_on:
  27. - db
  28. environment:
  29. DJANGO_SETTINGS_MODULE: 'myapp.settings.docker'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement