Advertisement
Guest User

jR

a guest
Apr 4th, 2018
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. version: "3.6"
  2. 1
  3. 2 services:
  4. 3 redis:
  5. 4 image: redis:alpine
  6. 5 container_name: redis_jerry
  7. 6 volumes:
  8. 7 - redis-box:/etc/redis/data
  9. 8 ports:
  10. 9 - "6379"
  11. 10 db:
  12. 11 image: postgres:10.3-alpine
  13. 12 environment:
  14. 13 POSTGRES_DB: jerryR_db
  15. 14 POSTGRES_USER: jR
  16. 15 POSTGRES_PASSWORD: jR
  17. 16 container_name: psql_jerry
  18. 17 volumes:
  19. 18 - db-databox:/var/lib/postgresql/data
  20. 19 ports:
  21. 20 - "5432"
  22. 21 nginx-jerry:
  23. 22 image: nginx:alpine
  24. 23 container_name: nginx_jerry_local
  25. 24 ports:
  26. 25 - "8000:8000"
  27. 26 restart: always
  28. 27 volumes:
  29. 28 - nginx-conf:/etc/nginx/nginx.conf
  30. 29 - ssl-box:/etc/ssl/data
  31. 30 command: [nginx-debug,'-g','daemon off;']
  32. 31 jerry-app:
  33. 32 build: .
  34. 33 container_name: jerry_app
  35. 34 command: bash -c "python manage.py makemigrations && python manage.py migrate && gunicorn jerryTail.wsgi -b {linode}:8000"
  36. 35 depends_on:
  37. 36 - db
  38. 37 - redis
  39. 38 volumes:
  40. 39 - dev_rP:/code/
  41. 40 ports:
  42. 41 - "8000:8000"
  43. 42 volumes:
  44. 43 redis-box:
  45. 44 db-databox:
  46. 45 nginx-conf:
  47. 46 ssl-box:
  48. 47 dev_rP:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement