meteorhacks / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
439 stars 371 forks source link

How to set meteor environment variables? #80

Closed JulianKingman closed 8 years ago

JulianKingman commented 8 years ago

I'm trying to ignore Spiderable's continuous SSL errors (per here: https://github.com/meteor/meteor/issues/1837), for which I need to set a meteor environment variable. Where would I set an environment variable such as this? 'METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS=--ssl-protocol=tlsv1 --ignore-ssl-errors=yes --debug=true' I tried adding that as a docker compose environment variable, but I don't think it worked (should it?).

JulianKingman commented 8 years ago

I'm still wondering how to do this, this time for a different situation where I want to create an environment variable for separate subdomains. Any chance you could explain how to do this? I'm using the docker-compose option to build.

jshimko commented 8 years ago
dashboard:
  image: yourrepo/yourapp
  ports:
   - "80:80"
  links:
   - mongo
  environment:
   - MONGO_URL=mongodb://mongo/yourapp
   - ROOT_URL=http://yourapp.com
   - MAIL_URL=smtp://some.mailserver.com:25
   - METEOR_PKG_SPIDERABLE_PHANTOMJS_ARGS="--ssl-protocol=tlsv1 --ignore-ssl-errors=yes --debug=true"
mongo:
  image: mongo:latest

https://docs.docker.com/compose/compose-file/#environment

JulianKingman commented 8 years ago

Awesome, that's as easy as I could hope. Compose environment variables === meteor environment variables.