forked from raystack/frontier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (64 loc) · 1.69 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
version: "3.7"
services:
pg:
image: gotocompany/postgres-partman:1.0.0
environment:
- POSTGRES_DB=shield
- POSTGRES_USER=shield
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./temp/pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shield"]
interval: 30s
timeout: 30s
retries: 3
command: [
"postgres",
"-c",
"log_statement=all",
"-c",
"log_destination=stderr",
"-c",
"shared_preload_libraries=pg_cron",
"-c",
"cron.database_name=shield",
]
pg2:
image: "postgres:15"
environment:
POSTGRES_USER: "spicedb"
POSTGRES_DB: "spicedb"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- ./temp/pgdata2:/var/lib/postgresql/data
ports:
- "5431:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U spicedb"]
interval: 30s
timeout: 30s
retries: 3
spicedb:
image: authzed/spicedb:v1.2.0
ports:
- "8080:8080"
- "50051:50051"
- "50053:50053"
command:
serve --grpc-preshared-key "shield" --datastore-engine postgres --datastore-conn-uri postgres://spicedb:@pg2:5432/spicedb?sslmode=disable
restart: on-failure
depends_on:
pg2:
condition: service_healthy
spicedb-migration:
condition: service_completed_successfully
spicedb-migration:
image: authzed/spicedb:v1.2.0
command: migrate head --datastore-engine postgres --datastore-conn-uri postgres://spicedb:@pg2:5432/spicedb?sslmode=disable
restart: on-failure
depends_on:
pg2:
condition: service_healthy