forked from flohansen/hsfl-master-ai-cloud-engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
106 lines (98 loc) · 2.2 KB
/
docker-compose.dev.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
96
97
98
99
100
101
102
103
104
105
106
version: "3.8"
services:
proxy:
build:
context: ./
dockerfile: ./src/http-proxy-service/Dockerfile
environment:
PROXY_CONFIG_PATH: "./config/proxyConfig.docker.yaml"
volumes:
- ./src/http-proxy-service/config:/config
ports:
- "8080:8080"
depends_on:
- web
web:
build:
context: ./
dockerfile: ./src/web-service/Dockerfile
ports:
- "3000:3000"
depends_on:
- products
- shoppinglists
- users
products:
build:
context: ./
dockerfile: ./src/product-service/Dockerfile
ports:
- "3003:3003"
- "50053:50053"
env_file:
- ./src/product-service/.env
depends_on:
database:
condition: service_healthy
users:
build:
context: ./
dockerfile: ./src/user-service/Dockerfile
ports:
- "3001:3001"
- "50051:50051"
env_file:
- ./src/user-service/.env
volumes:
- ./src/user-service/privateKey.pem:/privateKey.pem
depends_on:
database:
condition: service_healthy
shoppinglists:
build:
context: ./
dockerfile: ./src/shoppinglist-service/Dockerfile
ports:
- "3002:3002"
env_file:
- ./src/shoppinglist-service/.env
depends_on:
database:
condition: service_healthy
database:
image: rqlite/rqlite:8.15.0
ports:
- "4001:4001"
command: ["-node-id", "1", "-auth", "/run/secrets/config.json", "-http-adv-addr", "database:4001"]
configs:
- source: database
target: config.json
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:4001/readyz || exit 1"]
interval: 5s
retries: 5
start_period: 30s
start_interval: 1s
database-init-test:
build:
context: ./utils/rqlite-db-init-test/
dockerfile: Dockerfile
env_file:
- ./utils/rqlite-db-init-test/.env
depends_on:
database:
condition: service_healthy
configs:
database:
content: |
[
{
"username": "db-user",
"password": "db-pw-changeMe!",
"perms": [ "all" ]
},
{
"username": "*",
"perms": ["ready"]
}
]