-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (87 loc) · 2.06 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
services:
server:
build: .
command: server
ports:
- "${TIDAL_HOST_PORT:-8090}:8080"
environment:
TIDAL_ENV: development
TIDAL_LOG_LEVEL: debug
TIDAL_LOG_PRETTY: "true"
TIDAL_HTTP_ADDR: ":8080"
TIDAL_DB_URL: postgres://tidal:tidal@postgres:5432/tidal?sslmode=disable
TIDAL_REDIS_URL: redis://redis:6379/0
TIDAL_DISPATCHER: local
TIDAL_MEDIA_ROOTS: /media
TIDAL_AUTO_MIGRATE: "true"
volumes:
- media:/media
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
worker:
build: .
command: worker
environment:
TIDAL_ENV: development
TIDAL_LOG_LEVEL: debug
TIDAL_LOG_PRETTY: "true"
TIDAL_DB_URL: postgres://tidal:tidal@postgres:5432/tidal?sslmode=disable
TIDAL_REDIS_URL: redis://redis:6379/0
TIDAL_DISPATCHER: local
TIDAL_MEDIA_ROOTS: /media
volumes:
- media:/media
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ui:
image: oven/bun:1
working_dir: /app
ports:
- "5173:5173"
volumes:
- ./ui:/app
- ui-node-modules:/app/node_modules
environment:
VITE_API_PROXY: http://server:8080
command: ["sh", "-c", "bun install && bun run dev --host 0.0.0.0"]
depends_on:
server:
condition: service_started
postgres:
image: postgres:18-alpine
environment:
POSTGRES_USER: tidal
POSTGRES_PASSWORD: tidal
POSTGRES_DB: tidal
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tidal"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:8-alpine
command: ["redis-server", "--appendonly", "yes"]
ports:
- "6379:6379"
volumes:
- redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
redis:
media:
postgres:
ui-node-modules: