-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
67 lines (67 loc) · 1.62 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
version: '3.8'
services:
db:
image: postgres:14.7
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: pbuf
POSTGRES_PASSWORD: pbuf
POSTGRES_DB: pbuf_registry
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", "pbuf_registry" ]
interval: 5s
timeout: 10s
retries: 5
pbuf-registry:
build:
context: .
restart: always
depends_on:
- db
ports:
- "8080:8080"
- "6777:6777"
- "8082:8082"
healthcheck:
test: wget -O - http://localhost:8082/healthz || exit 1
interval: 5s
timeout: 10s
retries: 5
environment:
DATA_DATABASE_DSN: "postgres://pbuf:pbuf@db:5432/pbuf_registry?sslmode=disable"
command: >
sh -c "/app/pbuf-migrations && /app/pbuf-registry"
pbuf-registry-compaction:
build:
context: .
restart: always
depends_on:
- db
- pbuf-registry
healthcheck:
test: wget -O - http://localhost:8082/healthz || exit 1
interval: 5s
timeout: 10s
retries: 5
environment:
DATA_DATABASE_DSN: "postgres://pbuf:pbuf@db:5432/pbuf_registry?sslmode=disable"
command: >
sh -c "/app/pbuf-registry compaction"
pbuf-registry-protoparsing:
build:
context: .
restart: always
depends_on:
- db
- pbuf-registry
healthcheck:
test: wget -O - http://localhost:8082/healthz || exit 1
interval: 5s
timeout: 10s
retries: 5
environment:
DATA_DATABASE_DSN: "postgres://pbuf:pbuf@db:5432/pbuf_registry?sslmode=disable"
command: >
sh -c "/app/pbuf-registry proto-parsing"