-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.11 KB
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
version: "3"
services:
rabbitmq:
image: rabbitmq:latest
command: rabbitmq-server
ports:
- "5672:5672"
nginx:
image: nginx:latest
command: nginx -g "daemon off;"
volumes:
- ./nginx:/etc/nginx/conf.d
ports:
- "10008:10008"
depends_on:
- backend-A
- backend-B
worker-A:
image: onestraw/ocrservice
command: worker --rabbitmq=amqp://guest:guest@rabbitmq:5672/
depends_on:
- rabbitmq
worker-B:
image: onestraw/ocrservice
command: worker --rabbitmq=amqp://guest:guest@rabbitmq:5672/
depends_on:
- rabbitmq
backend-A:
image: onestraw/ocrservice
command: backend --addr=:10002 --rabbitmq=amqp://guest:guest@rabbitmq:5672/
ports:
- "10002:10002"
depends_on:
- rabbitmq
backend-B:
image: onestraw/ocrservice
command: backend --addr=:10003 --rabbitmq=amqp://guest:guest@rabbitmq:5672/
ports:
- "10003:10003"
depends_on:
- rabbitmq
frontend:
image: onestraw/ocrservice
command: frontend --backend.addr=nginx:10008
ports:
- "10001:10001"
depends_on:
- nginx