-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
142 lines (133 loc) · 3.07 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
142 lines (133 loc) · 3.07 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
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
services:
gateway:
build:
context: ./services/gateway
dockerfile: Dockerfile.gateway
ports:
- "8080:8080"
depends_on:
- store_service
- account_service
- minio
- store_db
- account_db
- assertion_mongo_db
volumes:
- ./services/gateway/config.yaml:/app/config.yaml # config file
- ./test-data:/app/test-data
environment:
- CONFIG_FILE_PATH=/app/config.yaml
- TEST_MODE=1
restart: always
networks:
- kebeng-backend
store_service:
build:
context: ./services/store
dockerfile: Dockerfile.store
ports:
- "8081:8081"
depends_on:
- store_db
- minio
volumes:
- ./services/store/config.yaml:/app/config.yaml # config file
environment:
- CONFIG_FILE_PATH=/app/config.yaml
- TEST_MODE=1
restart: always
networks:
- kebeng-backend
store_db:
image: postgres:13
restart: always
volumes:
- store_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=store_db
- POSTGRES_USER=kebe_user
- POSTGRES_PASSWORD=kebe
ports:
- "5432:5432"
networks:
- kebeng-backend
minio:
image: minio/minio
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio_data:/data
restart: always
networks:
- kebeng-backend
account_service:
build:
context: ./services/account
dockerfile: Dockerfile.account
ports:
- "8082:8082"
depends_on:
- account_db
volumes:
- ./services/account/config.yaml:/app/config.yaml # config file
environment:
- CONFIG_FILE_PATH=/app/config.yaml
- TEST_MODE=1
restart: always
networks:
- kebeng-backend
account_db:
image: postgres:13
restart: always
volumes:
- account_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=account_db
- POSTGRES_USER=kebe_user
- POSTGRES_PASSWORD=kebe
ports:
- "5433:5432"
networks:
- kebeng-backend
assertion_service:
build:
context: ./services/assertion
dockerfile: Dockerfile.assertion
ports:
- "8083:8083"
depends_on:
- assertion_mongo_db
volumes:
- ./services/assertion/config.yaml:/app/config.yaml # config file
- ./services/assertion/keys/:/app/keys/ # TODO: this path should become a variable instead of hardcoded
environment:
- CONFIG_FILE_PATH=/app/config.yaml
- TEST_MODE=1
restart: always
networks:
- kebeng-backend
assertion_mongo_db:
image: mongo:latest
restart: always
volumes:
- assertion_data:/data/db
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
networks:
- kebeng-backend
volumes:
store_data:
minio_data:
account_data:
assertion_data:
networks:
kebeng-backend:
driver: bridge