Skip to content

Commit 629958b

Browse files
committed
Using docker link over port in multi container samples
1 parent 1acd9fd commit 629958b

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

samples/data.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
templates:
66
- "templates/postgres.template.yml"
77
- "templates/redis.template.yml"
8-
- "templates/sshd.template.yml"
9-
10-
# change to use your private IP
11-
expose:
12-
- "10.0.0.1:5432:5432"
13-
- "10.0.0.1:6379:6379"
148

159
# any extra arguments for Docker?
1610
# docker_args:

samples/redis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
templates:
22
- "templates/redis.template.yml"
3-
- "templates/sshd.template.yml"
43

54
env:
65
LANG: en_US.UTF-8
76

87
# any extra arguments for Docker?
98
# docker_args:
109

11-
expose:
12-
- "6379:6379"
13-
- "2221:22"
14-
1510
volumes:
1611
- volume:
1712
host: /var/discourse/shared/redis

samples/standalone.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ templates:
1717
- "templates/postgres.template.yml"
1818
- "templates/redis.template.yml"
1919
- "templates/web.template.yml"
20-
- "templates/sshd.template.yml"
2120
- "templates/web.ratelimited.template.yml"
2221

2322
## which TCP/IP ports should this container expose?

samples/web_only.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
# TODO: change SOME_SECRET in this template
33

44
templates:
5-
- "templates/sshd.template.yml"
65
- "templates/web.template.yml"
76
- "templates/web.ratelimited.template.yml"
87

98
expose:
109
- "80:80"
1110
- "2222:22"
1211

12+
# Use 'links' key to link containers together, aka use Docker --link flag.
13+
links:
14+
- link:
15+
name: data
16+
alias: data
17+
1318
# any extra arguments for Docker?
1419
# docker_args:
1520

@@ -28,8 +33,8 @@ env:
2833
DISCOURSE_DB_SOCKET: ''
2934
#DISCOURSE_DB_USERNAME: discourse
3035
DISCOURSE_DB_PASSWORD: SOME_SECRET
31-
DISCOURSE_DB_HOST: DB_IP_ADDRESS
32-
DISCOURSE_REDIS_HOST: REDIS_IP_ADDRESS
36+
DISCOURSE_DB_HOST: data
37+
DISCOURSE_REDIS_HOST: data
3338
##
3439
## TODO: List of comma delimited emails that will be made admin and developer
3540
## on initial signup example '[email protected],[email protected]'
@@ -55,12 +60,6 @@ volumes:
5560
host: /var/discourse/shared/web-only/log/var-log
5661
guest: /var/log
5762

58-
#Use 'links' key to link containers together, aka use Docker --link flag.
59-
#links:
60-
# - link:
61-
# name: data
62-
# alias: data
63-
6463
## The docker manager plugin allows you to one-click upgrade Discouse
6564
## http://discourse.example.com/admin/docker
6665
hooks:

0 commit comments

Comments
 (0)