forked from hiddify/Hiddify-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (45 loc) · 1.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (45 loc) · 1.54 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
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 #specific version #image: ghcr.io/hiddify/hiddify-manager:v10.80.0 ports: - "80:80" - "443:443" privileged: true cap_add: - NET_ADMIN volumes: - ./docker-data/:/opt/hiddify-manager/data/ env_file: - path: ./docker.env
network_mode: host
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