better layout
[discourse_docker.git] / samples / standalone.yml
1 ## this is the all-in-one, standalone Discourse Docker container template
2 ##
3 ## After making changes to this file, you MUST rebuild for any changes
4 ## to take effect in your live Discourse instance:
5 ##
6 ## /var/discourse/launcher rebuild app
7 ##
8 ## BE *VERY* CAREFUL WHEN EDITING!
9 ## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
10 ## visit http://www.yamllint.com/ to validate this file as needed
11
12 templates:
13 - "templates/postgres.template.yml"
14 - "templates/redis.template.yml"
15 - "templates/web.template.yml"
16 - "templates/web.ratelimited.template.yml"
17 ## Uncomment these two lines if you wish to add Lets Encrypt (https)
18 #- "templates/web.ssl.template.yml"
19 #- "templates/web.letsencrypt.ssl.template.yml"
20
21 ## which TCP/IP ports should this container expose?
22 ## If you want Discourse to share a port with another webserver like Apache or nginx,
23 ## see https://meta.discourse.org/t/17247 for details
24 expose:
25 - "80:80" # http
26 - "443:443" # https
27
28 params:
29 db_default_text_search_config: "pg_catalog.english"
30
31 ## Set db_shared_buffers to a max of 25% of the total memory.
32 ## this will be set automatically by ./launcher memconfig app
33 #db_shared_buffers: "256MB"
34
35 ## this can improve sorting performance, but adds memory usage per-connection
36 #db_work_mem: "40MB"
37
38 ## Which Git revision should this container use? (default: tests-passed)
39 #version: tests-passed
40
41 env:
42 LANG: en_US.UTF-8
43 # DISCOURSE_DEFAULT_LOCALE: en
44
45 ## How many concurrent web requests are supported? Depends on memory and CPU cores.
46 ## this will be set automatically by ./launcher memconfig app
47 #UNICORN_WORKERS: 3
48
49 ## TODO: List of comma delimited emails that will be made admin and developer
50 ## on initial signup example 'user1@example.com,user2@example.com'
51 DISCOURSE_DEVELOPER_EMAILS: 'me@example.com'
52
53 ## TODO: The domain name this Discourse instance will respond to
54 DISCOURSE_HOSTNAME: 'discourse.example.com'
55
56 ## Uncomment if you want the container to be started with the same
57 ## hostname (-h option) as specified above (default "$hostname-$config")
58 #DOCKER_USE_HOSTNAME: true
59
60 ## TODO: The mailserver this Discourse instance will use
61 DISCOURSE_SMTP_ADDRESS: smtp.example.com # (mandatory)
62 #DISCOURSE_SMTP_PORT: 587 # (optional)
63 #DISCOURSE_SMTP_USER_NAME: user@example.com # (optional)
64 #DISCOURSE_SMTP_PASSWORD: pa$$word # (optional, WARNING the char '#' in pw can cause problems!)
65 #DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
66
67 ## The Let's Encrypt email will allow you to register a FREE SSL certificate.
68 ## If you added the Let's Encrypt template, uncomment below to automatically get certificates.
69 #LETSENCRYPT_ACCOUNT_EMAIL: email@awesomedomain.com
70
71 ## The CDN address for this Discourse instance (configured to pull)
72 ## see https://meta.discourse.org/t/14857 for details
73 #DISCOURSE_CDN_URL: //discourse-cdn.example.com
74
75 ## These containers are stateless, all data is stored in /shared
76 volumes:
77 - volume:
78 host: /var/discourse/shared/standalone
79 guest: /shared
80 - volume:
81 host: /var/discourse/shared/standalone/log/var-log
82 guest: /var/log
83
84 ## The docker manager plugin allows you to one-click upgrade Discourse
85 ## http://discourse.example.com/admin/upgrade
86 hooks:
87 after_code:
88 - exec:
89 cd: $home/plugins
90 cmd:
91 - git clone https://github.com/discourse/docker_manager.git
92
93 ## Remember, this is YAML syntax - you can only have one block with a name
94 run:
95 - exec: echo "Beginning of custom commands"
96
97 ## If you want to set the 'From' email address for your first registration, uncomment and change:
98 ## After getting the first signup email, re-comment the line. It only needs to run once.
99 #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
100
101 ## If you want to configure password login for root, uncomment and change:
102 ## Use only one of the following lines:
103 #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
104 #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root
105
106 - exec: echo "End of custom commands"