Add Discourse locale to samples/standalone.yml
[discourse_docker.git] / samples / web_only.yml
1 # IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
2 # TODO: change SOME_SECRET in this template
3
4 templates:
5 - "templates/sshd.template.yml"
6 - "templates/web.template.yml"
7 - "templates/web.ratelimited.template.yml"
8
9 expose:
10 - "80:80"
11 - "2222:22"
12
13 params:
14 ## Which Git revision should this container use? (default: tests-passed)
15 #version: tests-passed
16
17 env:
18 LANG: en_US.UTF-8
19 ## TODO: How many concurrent web requests are supported?
20 ## With 2GB we recommend 3-4 workers, with 1GB only 2
21 #UNICORN_WORKERS: 3
22
23 ## TODO: configure connectivity to the databases
24 DISCOURSE_DB_SOCKET: ''
25 #DISCOURSE_DB_USER: discourse
26 DISCOURSE_DB_PASSWORD: SOME_SECRET
27 DISCOURSE_DB_HOST: DB_IP_ADDRESS
28 DISCOURSE_REDIS_HOST: REDIS_IP_ADDRESS
29 ##
30 ## TODO: List of comma delimited emails that will be made admin and developer
31 ## on initial signup example 'user1@example.com,user2@example.com'
32 DISCOURSE_DEVELOPER_EMAILS: 'me@example.com'
33 ##
34 ## TODO: The domain name this Discourse instance will respond to
35 DISCOURSE_HOSTNAME: 'discourse.example.com'
36 ##
37 ## TODO: 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: pa$$word # (optional)
42 ##
43 ## The CDN address for this Discourse instance (configured to pull)
44 #DISCOURSE_CDN_URL: //discourse-cdn.example.com
45
46 volumes:
47 - volume:
48 host: /var/discourse/shared/web-only
49 guest: /shared
50 - volume:
51 host: /var/discourse/shared/web-only/log/var-log
52 guest: /var/log
53
54 #Use 'links' key to link containers together, aka use Docker --link flag.
55 #links:
56 # - link:
57 # name: data
58 # alias: data
59
60 ## The docker manager plugin allows you to one-click upgrade Discouse
61 ## http://discourse.example.com/admin/docker
62 hooks:
63 after_code:
64 - exec:
65 cd: $home/plugins
66 cmd:
67 - mkdir -p plugins
68 - git clone https://github.com/discourse/docker_manager.git
69
70 ## Remember, this is YAML syntax - you can only have one block with a name
71 run:
72 - exec: echo "Beginning of custom commands"
73
74 ## If you want to configure password login for root, uncomment and change:
75 #- exec: apt-get -y install whois # for mkpasswd
76 ## Use only one of the following lines:
77 #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
78 #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root
79
80 ## If you want to authorized additional users, uncomment and change:
81 #- exec: ssh-import-id username
82 #- exec: ssh-import-id anotherusername
83
84 - exec: echo "End of custom commands"
85 - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'