add a special env var DOCKER_HOST_IP to all images
[discourse_docker.git] / samples / web_only.yml
1 # IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
2 # 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
14 # your ssh key can go here, or you can use ssh-import-id
15 ssh_key: ""
16 version: HEAD
17
18 database_yml:
19 production:
20 socket: ""
21 host: <%= ENV['DOCKER_HOST_IP'] %>
22 database: discourse
23 username: discourse
24 password: SOME_SECRET
25 host_names:
26 - www.SOME_DOMAIN.com
27
28 # developer emails allow you to fast track account creation on the site
29 env:
30 DEVELOPER_EMAILS: ''
31
32 volumes:
33 - volume:
34 host: /var/docker/shared
35 guest: /shared
36
37 # you may use the docker manager to upgrade and monitor your docker image
38 # UI will be visible at http://yoursite.com/admin/docker
39 hooks:
40 # you may import your key using launchpad if needed
41 #after_sshd:
42 # - exec: ssh-import-id some-user
43 after_code:
44 - file:
45 path: $home/config/redis.yml
46 contents: |
47 production:
48 host: <%= ENV['DOCKER_HOST_IP'] %>
49 port: 6379
50 db: 0
51 cache_db: 2
52 - exec:
53 cd: $home/plugins
54 cmd:
55 - mkdir -p plugins
56 - git clone https://github.com/discourse/docker_manager.git