2 ## After making changes to this file, you MUST rebuild for any changes
3 ## to take effect in your live Discourse instance:
5 ## /var/docker/launcher rebuild app
8 ## this is the all-in-one, standalone Discourse Docker container template
10 - "templates/cron.template.yml"
11 - "templates/postgres.template.yml"
12 - "templates/redis.template.yml"
13 - "templates/sshd.template.yml"
14 - "templates/web.template.yml"
16 ## which TCP/IP ports should this container expose?
18 - "80:80" # fwd host port 80 to container port 80 (http)
19 - "2222:22" # fwd host port 2222 to container port 22 (ssh)
22 ## Which Git revision should this container use?
27 ## How many concurrent web requests are supported?
28 ## With 2GB we recommend 3-4 workers, with 1GB only 2
31 ## List of comma delimited emails that will be made admin on signup
32 DISCOURSE_DEVELOPER_EMAILS: 'my-email-address@example.com'
34 ## The domain name this Discourse instance will respond to
35 DISCOURSE_HOSTNAME: 'discourse.example.com'
37 ## The mailserver this Discourse instance will use
38 DISCOURSE_SMTP_ADDRESS: smtp.example.com # (mandatory)
39 # DISCOURSE_SMTP_PORT: 587 # (optional)
40 # DISCOURSE_SMTP_USER_NAME: user@example.com # (optional)
41 # DISCOURSE_SMTP_PASSWORD: p@ssword # (optional)
43 ## the origin pull CDN address for this Discourse instance
44 # DISCOURSE_CDN_URL: //discourse-cdn.example.com
46 ## These containers are stateless, all data is stored in /shared
49 host: /var/docker/shared/standalone
52 ## The docker manager plugin allows you to one-click upgrade Discouse
53 ## http://discourse.example.com/admin/docker
60 - git clone https://github.com/discourse/docker_manager.git
62 ## Remember, this is YAML syntax - you can only have one block with a name
64 - exec: echo "Beginning of custom commands"
66 ## If you want to configure password login for root, uncomment and change:
67 #- exec: apt-get -y install whois # for mkpasswd
68 ## Use only one of the following lines:
69 #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
70 #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root
72 ## If you want to authorized additional users, uncomment and change:
73 #- exec: ssh-import-id username
74 #- exec: ssh-import-id anotherusername
76 - exec: echo "End of custom commands"
77 - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'