Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/discourse/templates/app.yml.erb

Issue 29347356: Issue 4234 - Migrate Discourse to a Docker-based setup (Closed)
Patch Set: Finalized changes Created July 10, 2016, 4:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 ## this is the all-in-one, standalone Discourse Docker container template
2 ##
3 ## After making changes to this file, you MUST rebuild
4 ## /var/discourse/launcher rebuild app
5 ##
6 ## BE *VERY* CAREFUL WHEN EDITING!
7 ## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
8 ## visit http://www.yamllint.com/ to validate this file as needed
9
10 templates:
11 - "templates/postgres.template.yml"
12 - "templates/redis.template.yml"
13 - "templates/web.template.yml"
14 - "templates/web.ratelimited.template.yml"
15 - "templates/web.socketed.template.yml"
16
17 ## which TCP/IP ports should this container expose?
18 expose:
19
20 params:
21 db_default_text_search_config: "pg_catalog.english"
22
23 ## Set db_shared_buffers to a max of 25% of the total memory.
24 ## will be set automatically by bootstrap based on detected RAM, or you can ov erride
25 db_shared_buffers: "256MB"
26
27 ## can improve sorting performance, but adds memory usage per-connection
28 #db_work_mem: "40MB"
29
30 ## Which Git revision should this container use? (default: tests-passed)
31 version: v1.5.3
32
33 env:
34 LANG: en_US.UTF-8
35 RUBY_GC_MALLOC_LIMIT: 90000000
36
37 ## How many concurrent web requests are supported? Depends on memory and CPU c ores.
38 ## will be set automatically by bootstrap based on detected CPUs, or you can o verride
39 UNICORN_WORKERS: 2
40
41 ## The domain name this Discourse instance will respond to
42 DISCOURSE_HOSTNAME: '<%= @domain %>'
43
44 ## Uncomment if you want the container to be started with the same
45 ## hostname (-h option) as specified above (default "$hostname-$config")
46 #DOCKER_USE_HOSTNAME: true
47
48 ## TODO: List of comma delimited emails that will be made admin and developer
49 ## on initial signup example 'user1@example.com,user2@example.com'
50 DISCOURSE_DEVELOPER_EMAILS: '<% @admins.each do |admin| %><%= admin %>,<% end %>'
51
52 ## TODO: The SMTP mail server used to validate new accounts and send notificat ions
53 DISCOURSE_SMTP_ADDRESS: localhost # required
54 DISCOURSE_SMTP_PORT: 25 # (optional, default 587)
55 #DISCOURSE_SMTP_USER_NAME: user@example.com # required
56 #DISCOURSE_SMTP_PASSWORD: pa$$word # required, WARNING the char '#' in pw can cause problems!
57 DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
58
59 ## If you added the Lets Encrypt template, uncomment below to get a free SSL c ertificate
60 #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com
61
62 ## The CDN address for this Discourse instance (configured to pull)
63 ## see https://meta.discourse.org/t/14857 for details
64 #DISCOURSE_CDN_URL: //discourse-cdn.example.com
65
66 ## The Docker container is stateless; all data is stored in /shared
67 volumes:
68 - volume:
69 host: /var/discourse/shared/standalone
70 guest: /shared
71 - volume:
72 host: /var/discourse/shared/standalone/log/var-log
73 guest: /var/log
74
75 ## Plugins go here
76 ## see https://meta.discourse.org/t/19157 for details
77 hooks:
78 after_code:
79 - exec:
80 cd: $home/plugins
81 cmd:
82 #- git clone https://github.com/discourse/docker_manager.git
83
84 ## Any custom commands to run after building
85 run:
86 - exec: echo "Beginning of custom commands"
87 - exec: rails r "<% @site_settings.sort_by { |k,v| k }.each do |name, value| % >SiteSetting.<%=name%>='<%=value%>';<% end %>"
88 - exec: echo "End of custom commands"
OLDNEW

Powered by Google App Engine
This is Rietveld