Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (52 loc) · 1.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (52 loc) · 1.66 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
services:
hiddifymanager:
build: .
#image: ghcr.io/hiddify/hiddify-manager:latest #latest
#image: ghcr.io/hiddify/hiddify-manager:beta
#image: ghcr.io/hiddify/hiddify-manager:dev
#image: ghcr.io/hiddify/hiddify-manager:v13.0.0 #specific version
restart: always
privileged: true
cap_add:
- NET_ADMIN
volumes:
- ./docker-data/:/opt/hiddify-manager/data/ # Persistent panel data: SSL, logs, backups, generated state
network_mode: host # Binds 80/443 and all proxy ports directly
env_file:
- path: ./docker.env
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
mariadb:
image: mariadb:latest
restart: always
ports:
- "127.0.0.1:3306:3306"
env_file:
- path: ./docker.env
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 1 # Root user password
MYSQL_DATABASE: hiddifypanel
MYSQL_USER: hiddifypanel
volumes:
- ./docker-data/mariadb_data:/var/lib/mysql # Persistent storage for database files
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 5s
retries: 10
redis:
image: redis:latest
restart: always
ports:
- "127.0.0.1:6379:6379"
env_file:
- path: ./docker.env
command: sh -c "redis-server --requirepass \"$$REDIS_PASSWORD\""
volumes:
- ./docker-data/redis_data:/data # Persistent storage for Redis data
healthcheck:
test: ["CMD", "redis-cli", "-a", "$$REDIS_PASSWORD", "ping"]
interval: 5s
retries: 10