forked from sendrec/sendrec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
74 lines (70 loc) · 2 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
74 lines (70 loc) · 2 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
68
69
70
71
72
73
74
services:
sendrec:
build: .
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- garage-keys:/run/garage-keys:ro
environment:
- DATABASE_URL=postgres://sendrec:${SENDREC_DB_PASSWORD:-sendrec}@postgres:5432/sendrec?sslmode=disable
- S3_ENDPOINT=http://garage:3900
- S3_REGION=${S3_REGION:-eu-central-1}
- S3_BUCKET=recordings
- JWT_SECRET=${JWT_SECRET:-dev-secret-change-in-production}
- BASE_URL=${BASE_URL:-http://localhost:8080}
- MAX_UPLOAD_BYTES=${MAX_UPLOAD_BYTES:-524288000}
- AWS_REQUEST_CHECKSUM_CALCULATION=when_required
- AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
depends_on:
postgres:
condition: service_healthy
garage-init:
condition: service_completed_successfully
postgres:
image: postgres:18-alpine
restart: unless-stopped
ports:
- "5433:5432"
environment:
POSTGRES_USER: sendrec
POSTGRES_PASSWORD: ${SENDREC_DB_PASSWORD:-sendrec}
POSTGRES_DB: sendrec
volumes:
- sendrec-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sendrec"]
interval: 5s
timeout: 5s
retries: 5
garage:
image: dxflrs/garage:v2.2.0
restart: unless-stopped
volumes:
- ./garage.toml:/etc/garage.toml:ro
- sendrec-storage-meta:/var/lib/garage/meta
- sendrec-storage-data:/var/lib/garage/data
ports:
- "3900:3900"
- "3903:3903"
garage-init:
build:
context: .
dockerfile: Dockerfile.garage-init
network_mode: "service:garage"
depends_on:
garage:
condition: service_started
volumes:
- ./garage.toml:/etc/garage.toml:ro
- sendrec-storage-meta:/var/lib/garage/meta:ro
- garage-keys:/run/garage-keys
- ./garage-init.sh:/garage-init.sh:ro
environment:
- S3_BUCKET=recordings
entrypoint: ["/bin/sh", "/garage-init.sh"]
volumes:
sendrec-db:
sendrec-storage-meta:
sendrec-storage-data:
garage-keys: