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