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