-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.slim.yml
More file actions
89 lines (85 loc) · 2.49 KB
/
Copy pathdocker-compose.slim.yml
File metadata and controls
89 lines (85 loc) · 2.49 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
# =============================================================================
# Mixarr Slim Stack
# Production deployment using slim image with external MariaDB and Redis
#
# Usage:
# docker compose -f docker-compose.slim.yml up -d
#
# Requirements:
# - Set SESSION_SECRET in environment or .env file
#
# Ports:
# - 3000: Web UI
# - 3005: API
#
# =============================================================================
services:
# ---------------------------------------------------------------------------
# Mixarr Application (API + Web)
# ---------------------------------------------------------------------------
mixarr:
image: ghcr.io/aquantumofdonuts/mixarr:slim
container_name: mixarr
ports:
- "3000:3000" # Web UI
- "3005:3005" # API
environment:
- DATABASE_URL=mysql://mixarr:mixarr@db:3306/mixarr
- REDIS_URL=redis://redis:6379
- SESSION_SECRET=${SESSION_SECRET:-CHANGE_ME_IN_PRODUCTION}
volumes:
- mixarr-data:/data
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3005/api/health"]
interval: 30s
timeout: 10s
start_period: 60s
retries: 3
# ---------------------------------------------------------------------------
# MariaDB Database
# ---------------------------------------------------------------------------
db:
image: mariadb:11
container_name: mixarr-db
environment:
# ⚠️ Change these passwords in production!
- MYSQL_ROOT_PASSWORD=mixarr_root
- MYSQL_DATABASE=mixarr
- MYSQL_USER=mixarr
- MYSQL_PASSWORD=mixarr
volumes:
- mixarr-db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
start_period: 30s
retries: 5
restart: unless-stopped
# ---------------------------------------------------------------------------
# Redis Cache & Queue
# ---------------------------------------------------------------------------
redis:
image: redis:7-alpine
container_name: mixarr-redis
volumes:
- mixarr-redis:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
volumes:
mixarr-data:
name: mixarr-data
mixarr-db:
name: mixarr-db
mixarr-redis:
name: mixarr-redis