-
-
Save obonyojimmy/a34baa564f58fd2dd27a29a1313e4541 to your computer and use it in GitHub Desktop.
Docker setup, with SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx-proxy: | |
image: 'jwilder/nginx-proxy' | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- '/path/to/certs:/etc/nginx/certs:ro' | |
- '/etc/nginx/vhost.d' | |
- '/usr/share/nginx/html' | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' | |
letsencrypt: | |
image: 'jrcs/letsencrypt-nginx-proxy-companion' | |
volumes: | |
- '/path/to/certs:/etc/nginx/certs:rw' | |
- '/var/run/docker.sock:/var/run/docker.sock:ro' | |
volumes_from: | |
- nginx-proxy | |
meteor: | |
image: 'meteorhacks/meteord:latest' | |
environment: | |
- 'BUNDLE_URL=example.com/app-bundle.tar.gz' | |
- 'DELAY=30' | |
- 'MAIL_URL=mongodb://username:mongo_password@mongo' | |
- 'MONGO_URL=mongodb://admin:mongo_password@mongo' | |
- 'ROOT_URL=http://app.example.com' | |
- 'VIRTUAL_HOST=app.example.com' | |
- 'LETSENCRYPT_HOST=example.com' | |
- '[email protected]' | |
links: | |
- mongo | |
mongo: | |
image: 'tutum/mongodb:latest' | |
environment: | |
- 'MONGODB_PASS=mongo_password' | |
ports: | |
- '27017:27017' | |
- '28017:28017' | |
volumes_from: | |
- mongo-data | |
mongo-data: | |
image: 'busybox:latest' | |
volumes: | |
- /data/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment