Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. version: '2'
  2.  
  3. volumes:
  4. postgres_data: {}
  5. postgres_backup: {}
  6.  
  7. services:
  8. postgres:
  9. build: ./compose/postgres
  10. volumes:
  11. - postgres_data:/var/lib/postgresql/data
  12. - postgres_backup:/backups
  13. env_file: .env
  14.  
  15. django:
  16. build:
  17. context: .
  18. dockerfile: ./compose/django/Dockerfile
  19. user: django
  20. depends_on:
  21. - postgres
  22. - redis
  23. command: /gunicorn.sh
  24. env_file: .env
  25.  
  26. nginx:
  27. build: ./compose/nginx
  28. depends_on:
  29. - django
  30.  
  31. ports:
  32. - "0.0.0.0:80:80"
  33.  
  34.  
  35. redis:
  36. image: redis:latest
  37. restart: always
  38.  
  39. # PostgreSQL
  40. POSTGRES_PASSWORD=mysecretpass
  41. POSTGRES_USER=postgresuser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement