-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.override.yml
54 lines (51 loc) · 1.42 KB
/
docker-compose.override.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
version: "3.3"
services:
mongodb:
container_name: mongo
image: mongo:4.2
restart: always
backend:
container_name: backend
build:
context: .
dockerfile: Dockerfile.backend
restart: always
depends_on:
- mongodb
ports:
- "7000:80"
environment:
- Workers=http://worker1/;http://worker2/
- MongoDBConnectionString=mongodb://mongodb:27017/matroos
- MongoDBDatabaseName=matroos
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3
worker1:
container_name: worker1
build:
context: .
dockerfile: Dockerfile.worker
restart: always
ports:
- "7001:80"
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3
worker2:
container_name: worker2
build:
context: .
dockerfile: Dockerfile.worker
restart: always
ports:
- "7002:80"
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3