Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. nginx:
  2. image: nginx
  3. volumes:
  4. - ./mysite.template:/etc/nginx/conf.d/mysite.template
  5. - ./www:/usr/share/nginx/html
  6. - /etc/letsencrypt/live/girder.medbook.io/fullchain.pem:/fullchain.pem
  7. - /etc/letsencrypt/live/girder.medbook.io/privkey.pem:/privkey.pem
  8. ports:
  9. - "80:80"
  10. - "443:443"
  11. links:
  12. - "girder:girder"
  13. environment:
  14. - NGINX_HOST=girder.medbook.io
  15. - NGINX_PORT=80
  16. command: /bin/bash -c "envsubst '$$NGINX_HOST $$NGINX_PORT' < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
  17.  
  18.  
  19. mongodb:
  20. image: mongo:3.2
  21. volumes:
  22. - "./db:/data/db"
  23.  
  24. girder:
  25. image: girder/girder:1.7.0
  26. volumes:
  27. - "./girder.cfg:/etc/girder.cfg"
  28. links:
  29. - "mongodb:mongodb"
  30. command: -d mongodb://mongodb:27017/girder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement