1 # IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
2 # TODO: change SOME_SECRET in this template
5 - "templates/sshd.template.yml"
6 - "templates/web.template.yml"
7 - "templates/web.ratelimited.template.yml"
13 # any extra arguments for Docker?
17 ## Which Git revision should this container use? (default: tests-passed)
18 #version: tests-passed
22 ## TODO: How many concurrent web requests are supported?
23 ## With 2GB we recommend 3-4 workers, with 1GB only 2
26 ## TODO: configure connectivity to the databases
27 DISCOURSE_DB_SOCKET: ''
28 #DISCOURSE_DB_USERNAME: discourse
29 DISCOURSE_DB_PASSWORD: SOME_SECRET
30 DISCOURSE_DB_HOST: DB_IP_ADDRESS
31 DISCOURSE_REDIS_HOST: REDIS_IP_ADDRESS
33 ## TODO: List of comma delimited emails that will be made admin and developer
34 ## on initial signup example 'user1@example.com,user2@example.com'
35 DISCOURSE_DEVELOPER_EMAILS: 'me@example.com'
37 ## TODO: The domain name this Discourse instance will respond to
38 DISCOURSE_HOSTNAME: 'discourse.example.com'
40 ## TODO: The mailserver this Discourse instance will use
41 DISCOURSE_SMTP_ADDRESS: smtp.example.com # (mandatory)
42 #DISCOURSE_SMTP_PORT: 587 # (optional)
43 #DISCOURSE_SMTP_USER_NAME: user@example.com # (optional)
44 #DISCOURSE_SMTP_PASSWORD: pa$$word # (optional)
46 ## The CDN address for this Discourse instance (configured to pull)
47 #DISCOURSE_CDN_URL: //discourse-cdn.example.com
51 host: /var/discourse/shared/web-only
54 host: /var/discourse/shared/web-only/log/var-log
57 #Use 'links' key to link containers together, aka use Docker --link flag.
63 ## The docker manager plugin allows you to one-click upgrade Discouse
64 ## http://discourse.example.com/admin/docker
71 - git clone https://github.com/discourse/docker_manager.git
73 ## Remember, this is YAML syntax - you can only have one block with a name
75 - exec: echo "Beginning of custom commands"
77 ## If you want to configure password login for root, uncomment and change:
78 ## Use only one of the following lines:
79 #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
80 #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root
82 ## If you want to authorized additional users, uncomment and change:
83 #- exec: ssh-import-id username
84 #- exec: ssh-import-id anotherusername
86 - exec: echo "End of custom commands"
87 - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'