-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
60 lines (56 loc) · 1.36 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
60 lines (56 loc) · 1.36 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
name: caliborn-dev
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: caliborn
POSTGRES_PASSWORD: caliborn
POSTGRES_DB: caliborn
ports:
- "5432:5432"
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U caliborn -d caliborn"]
interval: 2s
timeout: 3s
retries: 20
liquidsoap:
image: savonet/liquidsoap:v2.3.3
user: "0:0"
command: ["/etc/liquidsoap/dev.liq"]
volumes:
- ./dev/liquidsoap.liq:/etc/liquidsoap/dev.liq:ro
- ls-sock:/sock
- music:/music
- ./dev/playlist.m3u:/music/playlist.m3u
healthcheck:
test: ["CMD-SHELL", "test -S /sock/liquidsoap.sock"]
interval: 2s
timeout: 3s
retries: 20
caliborn:
build:
context: .
dockerfile: Dockerfile
env_file:
- ./dev/.env
environment:
CALIBORN__DATABASE_URL: postgres://caliborn:caliborn@postgres:5432/caliborn
CALIBORN__LIQUIDSOAP_SOCKET: /sock/liquidsoap.sock
CALIBORN__LIQUIDSOAP_PLAYLIST_SOURCE: playlist
RUST_LOG: caliborn=debug,info
ports:
- "8000:8000"
volumes:
- ls-sock:/sock
- music:/music
depends_on:
postgres:
condition: service_healthy
liquidsoap:
condition: service_healthy
volumes:
pg-data:
ls-sock:
music: