forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (37 loc) · 925 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
permify:
build:
context: .
dockerfile: Dockerfile.local
restart: "always"
ports:
- "3476:3476"
- "3478:3478"
volumes:
- .:/app
depends_on:
- "database"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3476/healthz"]
interval: 10s
retries: 10
start_period: 60s
database:
image: "postgres"
ports:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=permify"
integration:
build:
context: .
dockerfile: integration-test/Dockerfile
container_name: integration
image: integration
depends_on:
permify:
condition: service_healthy
volumes:
pg-data: