forked from mpiorowski/late-sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (97 loc) · 2.78 KB
/
docker-compose.yml
File metadata and controls
103 lines (97 loc) · 2.78 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
services:
service-ssh:
build:
context: .
target: dev-ssh
container_name: ${INSTANCE}-ssh
ports:
- "${LATE_SSH_PORT}:${LATE_SSH_PORT}"
- "${LATE_API_PORT}:${LATE_API_PORT}"
env_file:
- .env
- path: .env.local
required: false
volumes:
- .:/app
- cargo-registry-ssh:/usr/local/cargo/registry
- cargo-git-ssh:/usr/local/cargo/git
- cargo-target-ssh:/app/target
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "timeout 2 bash -c 'exec 3<>/dev/tcp/localhost/${LATE_API_PORT}; printf \"GET /api/health HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3; head -n 1 <&3 | grep -q \"200\"' || exit 1"]
interval: 30s
timeout: 5s
retries: 3
service-web:
build:
context: .
target: dev-web
container_name: ${INSTANCE}-web
ports:
- "${LATE_WEB_PORT}:${LATE_WEB_PORT}"
env_file:
- .env
- path: .env.local
required: false
volumes:
- .:/app
- cargo-registry-web:/usr/local/cargo/registry
- cargo-git-web:/usr/local/cargo/git
- cargo-target-web:/app/target
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/${LATE_WEB_PORT}' || exit 1"]
interval: 30s
timeout: 5s
retries: 3
postgres:
container_name: ${INSTANCE}-postgres
image: postgres:18
ports:
- "${LATE_PG_HOST_PORT}:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
icecast:
image: libretime/icecast:2.4.4
container_name: ${INSTANCE}-icecast
networks:
default:
aliases:
- icecast-sv
ports:
- "${LATE_ICECAST_HOST_PORT}:8000"
volumes:
- ./infra/icecast/icecast.xml:/etc/icecast2/icecast.xml:ro
liquidsoap:
image: savonet/liquidsoap:v2.4.0
container_name: ${INSTANCE}-liquidsoap
depends_on:
- icecast
volumes:
- ./infra/liquidsoap/radio.liq:/etc/liquidsoap/radio.liq:ro
- ./infra/liquidsoap/dev/lofi.m3u:/etc/liquidsoap/lofi.m3u:ro
- ./infra/liquidsoap/dev/classic.m3u:/etc/liquidsoap/classic.m3u:ro
- ./infra/liquidsoap/dev/ambient.m3u:/etc/liquidsoap/ambient.m3u:ro
- ./infra/liquidsoap/dev/jazz.m3u:/etc/liquidsoap/jazz.m3u:ro
- ./music:/music:ro
command: ["liquidsoap", "/etc/liquidsoap/radio.liq"]
ports:
- "${LATE_LIQUIDSOAP_HOST_PORT}:1234"
volumes:
cargo-registry-ssh:
cargo-git-ssh:
cargo-target-ssh:
cargo-registry-web:
cargo-git-web:
cargo-target-web: