-
Notifications
You must be signed in to change notification settings - Fork 48
/
docker-compose-custom.yml
195 lines (185 loc) · 4.57 KB
/
docker-compose-custom.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
version: '3.4'
services:
apache:
build:
dockerfile: Dockerfile-Apache
context: ./
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/var/log/apache2:/var/log/apache2/"
ports:
- "443:443"
- "80:80"
networks:
- scot-docker-net
container_name: apache
image: sandialabs/scot_apache
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
activemq:
volumes:
- "/var/log/activemq:/var/log/activemq/log/"
build:
dockerfile: Dockerfile-Activemq
context: ./
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
networks:
- scot-docker-net
container_name: activemq
image: sandialabs/scot_activemq
mongodb:
build:
dockerfile: Dockerfile-Mongodb
context: ./
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/var/lib/mongodb:/var/lib/mongodb/"
- "/opt/scotbackup/mongo/scot-prod:/opt/scotbackup/mongo/scot-prod/:z"
- "/var/log:/var/log/"
- "./install/src/mongodb:/opt/scot/install/src/mongodb/:ro"
networks:
- scot-docker-net
container_name: mongodb
image: sandialabs/scot_mongodb
elastic:
build:
dockerfile: Dockerfile-Elastic
context: ./
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/opt/scotbackup/elastic:/opt/scotbackup/elastic/:z"
- "/var/lib/elasticsearch:/var/lib/elasticsearch/"
- "/var/log/elasticsearch:/var/log/elasticsearch/"
networks:
- scot-docker-net
container_name: elastic
image: sandialabs/scot_elastic
scot:
build:
dockerfile: Dockerfile-Scot
context: ./
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
volumes:
- "/var/log/scot:/var/log/scot/"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/opt/scotfiles:/opt/scotfiles/"
- "./public/:/opt/scot/public/"
- "./lib/:/opt/scot/lib/"
- "/var/lib/elasticsearch:/var/lib/elasticsearch/"
- "/var/lib/mongodb:/var/lib/mongodb/"
- "/opt/scotbackup:/opt/scotbackup/:z"
- "/opt/scot/public/cached_images:/opt/scot/public/cached_images/"
depends_on:
- mongodb
- activemq
networks:
- scot-docker-net
container_name: scot
image: sandialabs/scot_scot
hostname: ${HOSTNAME}
flair:
build:
dockerfile: Dockerfile-Flair
context: ./
volumes:
- "/var/log/scot:/var/log/scot/"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- mongodb
- activemq
- scot
networks:
- scot-docker-net
container_name: flair
image: sandialabs/scot_flair
reflair:
build:
dockerfile: Dockerfile-Reflair
context: ./
volumes:
- "/var/log/scot:/var/log/scot/"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- mongodb
- activemq
- scot
networks:
- scot-docker-net
container_name: reflair
image: sandialabs/scot_reflair
stretch:
build:
dockerfile: Dockerfile-Stretch
context: ./
image: scot_stretch
volumes:
- "/var/log/scot:/var/log/scot/"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- mongodb
- activemq
- scot
networks:
- scot-docker-net
container_name: stretch
image: sandialabs/scot_stretch
game:
build:
dockerfile: Dockerfile-Game
context: ./
volumes:
- "/var/log/scot:/var/log/scot/"
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- mongodb
- scot
networks:
- scot-docker-net
container_name: game
image: sandialabs/scot_game
#mail:
# build:
# dockerfile: Dockerfile-Mail
# context: ./
# volumes:
# - "/var/log/scot:/var/log/scot/"
# depends_on:
# - mongodb
# - scot
# networks:
# - scot-docker-net
# image: sandialabs/scot_mail
# container_name: mail
networks:
scot-docker-net:
driver: bridge