Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx:
- image: nginx
- volumes:
- - ./mysite.template:/etc/nginx/conf.d/mysite.template
- - ./www:/usr/share/nginx/html
- - /etc/letsencrypt/live/girder.medbook.io/fullchain.pem:/fullchain.pem
- - /etc/letsencrypt/live/girder.medbook.io/privkey.pem:/privkey.pem
- ports:
- - "80:80"
- - "443:443"
- links:
- - "girder:girder"
- environment:
- - NGINX_HOST=girder.medbook.io
- - NGINX_PORT=80
- 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;'"
- mongodb:
- image: mongo:3.2
- volumes:
- - "./db:/data/db"
- girder:
- image: girder/girder:1.7.0
- volumes:
- - "./girder.cfg:/etc/girder.cfg"
- links:
- - "mongodb:mongodb"
- command: -d mongodb://mongodb:27017/girder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement