Links another container to the current container. This will add `--link postgres:postgres`
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:
require 'yaml'
input=STDIN.readlines.join
- # default to UTF-8 for the dbs sake
+ # default to UTF-8 for the dbs sakeb
env = {'LANG' => 'en_US.UTF-8'}
input.split('_FILE_SEPERATOR_').each do |yml|
yml.strip!
if [ "$i" == "*ERROR." ]; then
ok=0
elif [ -n "$i" ]; then
- labels[${#labels[@]}]=$i
+ labels[${#labels[@]}]=$(echo $i | sed s/{{config}}/${config}/)
fi
done <<< "$raw"