Skip to content

Commit

Permalink
Update README.md to add settings.json info
Browse files Browse the repository at this point in the history
Describes how to add settings.json info to be included in the Meteor.settings runtime object.
  • Loading branch information
cunneen authored Aug 9, 2018
1 parent b9a2eed commit f11e2ff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,21 @@ FROM jshimko/meteor-launchpad:devbuild

This isn't recommended for your final production build because it creates a much larger image, but it's a bit of a time saver when you're building often in development. The first build you run will download/install Meteor and then every subsequent build will be able to skip that step and just build the app.

## Meteor.settings

If you want to include custom settings (as you would via a [settings.json file](https://docs.meteor.com/api/core.html#Meteor-settings)), you need to set the METEOR_SETTINGS environment variable:

```sh
docker run -d \
-e ROOT_URL=http://example.com \
-e MONGO_URL=mongodb://url \
-e MONGO_OPLOG_URL=mongodb://oplog_url \
-e MAIL_URL=smtp://mail_url.com \
-e METEOR_SETTINGS="$(cat settings.json)" \
-p 80:3000 \
yourname/app
```

## Docker Compose

Add a `docker-compose.yml` to the root of your project with the following content and edit the app image name to match your build name. Everything else should work as-is.
Expand Down

0 comments on commit f11e2ff

Please sign in to comment.