-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (90 loc) · 2.35 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
91
version: '3.8'
services:
db:
image: postgres:14.7
restart: always
networks:
- internal
expose:
- "5432"
volumes:
- ./.postgres-data:/var/lib/postgresql/data
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:
image: ghcr.io/pbufio/registry:v0.4.0
restart: always
depends_on:
- db
networks:
- internal
ports:
- "8080:8080"
- "6777:6777"
- "127.0.0.1:8082:8082"
healthcheck:
test: wget -O - http://localhost:8082/healthz || exit 1
interval: 5s
timeout: 10s
retries: 5
volumes:
- ./gen/certs:/app/certs
environment:
DATA_DATABASE_DSN: "postgres://pbuf:pbuf@db:5432/pbuf_registry?sslmode=disable"
SERVER_GRPC_TLS_ENABLED: true
SERVER_GRPC_TLS_CERTFILE: /app/certs/server-cert.pem
SERVER_GRPC_TLS_KEYFILE: /app/certs/server-key.pem
SERVER_GRPC_AUTH_ENABLED: true
SERVER_GRPC_AUTH_TYPE: static-token
SERVER_HTTP_AUTH_ENABLED: true
SERVER_HTTP_AUTH_TYPE: static-token
SERVER_STATIC_TOKEN: ${SERVER_STATIC_TOKEN}
command: >
sh -c "/app/pbuf-migrations && /app/pbuf-registry"
pbuf-registry-compaction:
image: ghcr.io/pbufio/registry:v0.4.0
restart: always
depends_on:
- db
- pbuf-registry
networks:
- internal
ports:
- "127.0.0.1:8083: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-registry compaction"
pbuf-registry-protoparser:
image: ghcr.io/pbufio/registry:v0.4.0
restart: always
depends_on:
- db
- pbuf-registry
networks:
- internal
ports:
- "127.0.0.1:8084: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-registry proto-parsing"
networks:
internal: