forked from qcri/apihub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (83 loc) · 1.68 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
version: "3.8"
services:
redis:
image: redis
ports:
- "6379:6379"
networks:
- internal-nw
postgres:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=apidb
ports:
- "5432:5432"
networks:
- internal-nw
server:
image: apihub
command: ["apihub_server"]
#command: ["apihub_users_init"]
#command: ["apihub_users_deinit"]
ports:
- "5000:5000"
environment:
- OUT_KIND=LREDIS
- OUT_REDIS=redis://redis:6379/1
- REDIS=redis://redis:6379/1
- DB_URI=postgresql://dbuser:dbpass@postgres/apidb
- USERNAME=admin
- PASSWORD=password
links:
- redis
- posgres
networks:
- internal-nw
- external-nw
worker:
image: apihub
command: ["apihub_worker"]
environment:
- IN_KIND=LREDIS
- IN_REDIS=redis://redis:6379/1
- IN_TOPIC=api-test
- OUT_KIND=LREDIS
- OUT_REDIS=redis://redis:6379/1
- OUT_TOPIC=api-result
- DEBUG=TRUE
expose:
- "8000"
links:
- redis
depends_on:
- redis
networks:
- internal-nw
result:
image: apihub
command: ["apihub_result"]
environment:
- IN_KIND=LREDIS
- IN_REDIS=redis://redis:6379/1
- IN_TOPIC=api-result
- REDIS=redis://redis:6379/1
- DEBUG=TRUE
expose:
- "8000"
links:
- redis
depends_on:
- redis
networks:
- internal-nw
volumes:
postgres_data:
networks:
internal-nw:
internal: true
external-nw: