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