require 'yaml'
input=STDIN.readlines.join
- env = {}
+ # default to UTF-8 for the dbs sake
+ env = {'LANG' => 'en_US.UTF-8'}
input.split('_FILE_SEPERATOR_').each do |yml|
yml.strip!
begin
- "6379:6379"
- "2221:22"
+env:
+ # ensure locale exists in container, you may need to install it
+ LANG: en_US.UTF-8
+
# amend SOME_SECRET to a password for the discourse user
hooks:
after_postgres:
- "templates/redis.template.yml"
- "templates/sshd.template.yml"
+env:
+ LANG: en_US.UTF-8
+
expose:
- "6379:6379"
- "2221:22"
version: HEAD
env:
+ LANG: en_US.UTF-8
## How many concurrent web requests are supported?
## With 2GB we recommend 3-4 workers, with 1GB only 2
# UNICORN_WORKERS: 3
# developer emails allow you to fast track account creation on the site
env:
# add emails here
+ LANG: en_US.UTF-8
+
DISCOURSE_DEVELOPER_EMAILS: ''
DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_PASSWORD: SOME_SECRET
- exec:
cmd:
- chown -R root /var/lib/postgresql/9.3/main
- - "[ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -u postgres /usr/lib/postgresql/9.3/bin/initdb -D /shared/postgres_data || exit 0"
+ - "[ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/9.3/bin/initdb -D /shared/postgres_data || exit 0"
- chown -R postgres:postgres /shared/postgres_data
- chown -R postgres:postgres /var/run/postgresql