-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
95 lines (86 loc) · 1.86 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
services:
mongodb:
container_name: mongodb
image: mongo:4.4
restart: always
volumes:
- ltres_oltapi_data:/data/db
ports:
- 27017:27017
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
rabbit:
container_name: rabbit
image: rabbitmq:3
restart: always
ports:
- 5672:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
webapi:
depends_on:
mongodb:
condition: service_healthy
build:
context: .
dockerfile: ./LTres.OltApi.WebApi/Dockerfile
args:
- VERSION=0.0.1.10
ports:
- 5000:5000
workercontroller1:
depends_on:
mongodb:
condition: service_healthy
rabbit:
condition: service_healthy
build:
context: .
dockerfile: ./LTres.OltApi.WorkerController/Dockerfile
args:
- VERSION=0.0.0.10
# workercontroller2:
# depends_on:
# - mongodb
# - rabbit
# build:
# context: .
# dockerfile: ./LTres.OltApi.WorkerController/Dockerfile
worker1:
depends_on:
- rabbit
build:
context: .
dockerfile: ./LTres.OltApi.Worker/Dockerfile
args:
- VERSION=0.0.1.10
environment:
- LTRES_MOCKING=true
# worker2:
# depends_on:
# - rabbit
# build:
# context: .
# dockerfile: ./LTres.OltApi.Worker/Dockerfile
# worker3:
# depends_on:
# - rabbit
# build:
# context: .
# dockerfile: ./LTres.OltApi.Worker/Dockerfile
# worker4:
# depends_on:
# - rabbit
# build:
# context: .
# dockerfile: ./LTres.OltApi.Worker/Dockerfile
volumes:
ltres_oltapi_data: