This image runs an example meteor app in a production setup
docker build -t meteor-production-docker-example
docker push user/meteor-production-docker-example:tag
If you want to push the image to one of your repositories at https://hub.docker.com, replace user with your own username and set the correct tag
docker run -d \
--env MONGO_OPLOG_URL=mongodb://list,of,ips/local?authSource=admin \
--env MONGO_URL=mongodb://list,of,ips:mongoport/db-name?replicaSet=rs0&readPreference=primaryPreferred&w=majority \
--env ROOT_URL=http://localhost \
meteor-production-docker-example
Replace list,of,ips
with your list of mongodb IPs in your replica set, if you do not have a mongo server, you may use compose.io for testing, or setup a mongo replica set using mongo-replica-set
Replace mongoport
accordingly, most likely default port of 27017
Replace http://localhost
with your app url
Alternatively you can set it up via cloud.docker once you have pushed the image in one of your repositories
MONGO_OPLOG_URL the oplog url for a mongodb replica set
MONGO_URL the mongo connection url used for a meteor production deployment
ROOT_URL the url of the meteor app
COOKIE for haproxy, this is set to `SRV insert indirect nocache`
FORCE_SSL true or false, indicates if http access should redirect to https
VIRTUAL_HOST the hostname for the app, if using ssl, provide both protocols as `http://my-app.com,https://my-app.com`
You can add any other environment variables you might need, oauth service keys like googleClientId and googleSecret, MAIL_URL etc.