Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. openproj:
  2. image: progtologist/openproject
  3. expose:
  4. - 80
  5. environment:
  6. POSTGRES_PORT_5432_TCP_ADDR: "db"
  7. POSTGRES_ENV_PASS: "flaming_lips"
  8. link:
  9. - db
  10. restart: always
  11. db:
  12. image: postgres:9.5
  13. environment:
  14. POSTGRES_USER: "openproj"
  15. POSTGRES_PASSWORD: "flaming_lips"
  16. expose:
  17. - 5432
  18. volumes:
  19. - /var/lib/docker/opt/openproj/data/db:/var/lib/postgresql/data
  20. - /etc/localtime:/etc/localtime:ro
  21. restart: always
  22.  
  23. www:
  24. image: nginx:1.9
  25. volumes:
  26. # nginx sockets go here
  27. - /var/lib/docker/opt/nginx/sockets/:/var/run/nginx/
  28. # nginx config overrides default.conf
  29. - /var/lib/docker/opt/openproj/nginx/openproj.conf:/etc/nginx/conf.d/default.conf
  30. - /var/lib/docker/opt/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
  31. - /etc/localtime:/etc/localtime:ro
  32. links:
  33. - openproj:openproj.upstream.com
  34. restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement