Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker setup, with SSL
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'
- 'LETSENCRYPT_EMAIL=webmaster@example.com'
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