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