X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=README.md;h=4fd4a636f5be8f7e34bf979b317c7438afb60bfe;hb=0aea0a1329f9dcc127449fababb66745d1cab36f;hp=4cd622699eedb86bd1ad111de3044a4a8e12c542;hpb=3447089f9ede4e26cb5832ed6c4966259420c06d;p=discourse_docker.git diff --git a/README.md b/README.md index 4cd6226..4fd4a63 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Placeholder spot for shared volumes with various Discourse containers. You may e Dockerfiles for Discourse; see [the README](image/README.md) for further details. -The Docker repository will always contain the latest built version at: https://hub.docker.com/r/discourse/discourse/, you should not need to build the base image. +The Docker repository will always contain the latest built version at: https://hub.docker.com/r/discourse/base/, you should not need to build the base image. ### Launcher @@ -108,6 +108,32 @@ links: Links another container to the current container. This will add `--link postgres:postgres` to the options when running the container. +#### environment variables: + +Setting environment variables to the current container. + +``` +# app.yml + +env: + DISCOURSE_DB_HOST: some-host + DISCOURSE_DB_NAME: {{config}}_discourse +``` + +The above will add `-e DISCOURSE_DB_HOST=some-host -e DISCOURSE_DB_NAME=app_discourse` to the options when running the container. + +#### labels: +``` +# app.yml + +labels: + monitor: 'true' + app_name: {{config}}_discourse +``` + +Add labels to the current container. The above will add `--l monitor=true -l app_name=dev_discourse` to the options +when running the container + ### Upgrading Discourse The Docker setup gives you multiple upgrade options: @@ -184,7 +210,7 @@ then run: This will spawn a new Ubuntu VM, install Docker, and then await your instructions. You can then SSH into the VM with `vagrant ssh`, become `root` with `sudo -i`, and then you're right to go. Your live git repo is -already available at `/var/discourse`, so you can just `cd /var/discourse` +already available at `/vagrant`, so you can just `cd /vagrant` and then start running `launcher`.