-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
213 lines (206 loc) · 4.93 KB
/
docker-compose.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
services:
traffic-nginx:
image: 'docker.io/jc21/nginx-proxy-manager:latest'
restart: unless-stopped
container_name: d10-nginx
healthcheck:
test: [ "CMD", "/usr/bin/check-health" ]
interval: 10s
timeout: 3s
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
- net
d10mongodb:
image: mongo:5.0.1
container_name: d10-mongodb
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
ports:
- target: 27017
published: 27017
protocol: tcp
mode: host
networks:
- net
volumes:
- './db:/data/db'
restart: always
#
d10repo:
build:
context: repository
image: mono:latest
container_name: d10-repo
depends_on:
d10mongodb:
condition: service_healthy
networks:
- net
volumes:
- type: bind
source: ./install
target: /opt/setup/
- type: bind
source: ./repository
target: /deadline10/
restart: no
command: sh /opt/setup/setup_deadline.sh
d10client:
build:
context: repository
image: mono:latest
container_name: d10-client
depends_on:
d10repo:
condition: service_completed_successfully
d10mongodb:
condition: service_healthy
networks:
- net
volumes:
- type: bind
source: ./install
target: /opt/setup/
- type: bind
source: ./repository
target: /deadline10/
restart: no
command: sh /opt/setup/setup_client.sh
d10webservice:
build:
context: client
image: mono:latest
container_name: d10-webservice
healthcheck:
test: curl -i http://0.0.0.0:8081 || exit 1
interval: 2s
retries: 20
start_period: 2s
timeout: 5s
depends_on:
d10repo:
condition: service_completed_successfully
d10client:
condition: service_completed_successfully
d10mongodb:
condition: service_healthy
ports:
- target: 8081
published: 8081
protocol: tcp
mode: host
networks:
- net
volumes:
- type: bind
source: ./install
target: /opt/setup/
- type: bind
source: ./repository
target: /deadline10/
- './install/deadline-webservice.ini:/var/lib/Thinkbox/Deadline10/deadline.ini'
restart: always
command: sh /opt/setup/run_webservice.sh
#
d10rcs:
build:
context: client
image: mono:latest
container_name: d10-rcs
healthcheck:
test: curl -i http://0.0.0.0:8080 || exit 1
interval: 2s
retries: 20
start_period: 2s
timeout: 5s
depends_on:
d10repo:
condition: service_completed_successfully
d10client:
condition: service_completed_successfully
d10mongodb:
condition: service_healthy
traffic-nginx:
condition: service_healthy
d10webservice:
condition: service_healthy
ports:
- target: 8080
published: 8080
protocol: tcp
mode: host
networks:
- net
volumes:
- type: bind
source: ./install
target: /opt/setup/
- type: bind
source: ./repository
target: /deadline10/
- './install/deadline-webservice.ini:/var/lib/Thinkbox/Deadline10/deadline.ini'
restart: always
command: sh /opt/setup/run_rcsservice.sh
deadline-web-app-backend:
build:
context: ./deadline-web-app-backend
dockerfile: Dockerfile
container_name: deadline-web-app-backend
ports:
- "1000:80"
environment:
OPENAI_API_KEY: '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'
WEB_SERVICE_IP: d10webservice
WEB_SERVICE_PORT: 8081
depends_on:
d10webservice:
condition: service_healthy
traffic-nginx:
condition: service_healthy
networks:
- net
restart: always
deadline-web-app-frontend:
build:
context: deadline-web-app-frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_BACKEND_URL: http://deadline-web-app-backend:1000
container_name: deadline-web-app-frontend
healthcheck:
test: curl -i http://localhost:2000 || exit 1
interval: 2s
retries: 20
start_period: 2s
timeout: 5s
depends_on:
d10webservice:
condition: service_healthy
traffic-nginx:
condition: service_healthy
deadline-web-app-backend:
condition: service_started
ports:
- "2000:80"
networks:
- net
restart: always
networks:
net:
internal: false
driver: bridge
attachable: true
volumes:
repository:
db: