This repository was archived by the owner on Sep 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
67 lines (64 loc) · 1.6 KB
/
docker-compose.dev.yaml
File metadata and controls
67 lines (64 loc) · 1.6 KB
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
services:
postgres:
image: postgres:17
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: derailed
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
minio:
image: quay.io/minio/minio
hostname: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: derailed
MINIO_ROOT_PASSWORD: derailed
volumes:
- ./minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
gateway:
image: derailed/gateway
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/derailed
ports:
- 10000:10000
- 50051:50051
api:
image: derailed/api
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/derailed
- ALLOW_ORIGINS=http://localhost:5173
- GRPC_TARGET=localhost:50051
- DEBUG=TRUE
- S3_ENDPOINT=http://minio:9000
- S3_ACCESS_KEY=derailed
- S3_SECRET_KEY=derailed
ports:
- 8000:8000