-
-
Notifications
You must be signed in to change notification settings - Fork 751
/
docker-compose.yml
53 lines (46 loc) · 1.66 KB
/
docker-compose.yml
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:
hiddify:
#only for local build and development
#build: .
#latest release version
image: ghcr.io/hiddify/hiddify-manager:latest
#latest beta version
#image: ghcr.io/hiddify/hiddify-manager:beta
#latest build of current development
#image: ghcr.io/hiddify/hiddify-manager:dev
#specific version
#image: ghcr.io/hiddify/hiddify-manager:v10.80.0
ports:
- 443:443
- 80:80
- "11000-60000" #for custom protocols like hysteria tuic wiregaurd
privileged: true
cap_add:
- NET_ADMIN
volumes:
- ./docker-data/:/hiddify-data/
environment:
REDIS_URI_MAIN: 'redis://:REDIS_STRONG_PASS@redis:6379/0'
REDIS_URI_SSH: 'redis://:REDIS_STRONG_PASS@redis:6379/1'
SQLALCHEMY_DATABASE_URI: 'mysql+mysqldb://hiddifypanel:MYSQL_STRONG_PASS@mariadb/hiddifypanel?charset=utf8mb4'
depends_on:
- mariadb
- redis
mariadb:
image: mariadb:latest
container_name: mariadb_container
restart: always
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 1 # Root user password
MYSQL_DATABASE: hiddifypanel # Initial database name
MYSQL_USER: hiddifypanel # Custom username
MYSQL_PASSWORD: MYSQL_STRONG_PASS # Custom user password
volumes:
- ./docker-data/mariadb_data:/var/lib/mysql # Persistent storage for database files
redis:
image: redis:latest
container_name: redis_container
restart: always
command: ["redis-server", "--requirepass", "REDIS_STRONG_PASS"]
volumes:
- ./docker-data/redis_data:/data # Persistent storage for Redis data