Skip to content

Commit 6344a9c

Browse files
authored
Merge pull request #4787 from tesilaaliset/fix/fix-docker-run
2 parents 525d8a3 + 602e5cd commit 6344a9c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

common/docker-installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cd hiddify-manager
1818

1919
# Download the docker-compose.yml file
2020
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/docker-compose.yml
21+
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/hiddify-panel/app.cfg
2122

2223
# Generate random passwords for MySQL and Redis
2324
mysqlpassword=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | head -c49; echo)
@@ -27,6 +28,8 @@ redispassword=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | head -c49; echo)
2728
sed -i "s/hiddify-manager:latest/hiddify-manager:$TAG/g" docker-compose.yml
2829
sed -i "s/REDIS_STRONG_PASS/$redispassword/g" docker-compose.yml
2930
sed -i "s/MYSQL_STRONG_PASS/$mysqlpassword/g" docker-compose.yml
31+
sed -i "s/REDIS_STRONG_PASS/$redispassword/g" app.cfg
32+
sed -i "s/MYSQL_STRONG_PASS/$mysqlpassword/g" app.cfg
3033

3134
# Start the containers using Docker Compose
3235
docker compose up -d

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ services:
1717
ports:
1818
- "80:80"
1919
- "443:443"
20-
- "53:53/udp"
21-
- "53:53/tcp"
2220
- "42238:42238/udp"
2321
- "19572:19572/udp"
2422
- "17573:17573/udp"
@@ -27,6 +25,7 @@ services:
2725
- NET_ADMIN
2826
volumes:
2927
- ./docker-data/:/hiddify-data/
28+
- ./app.cfg:/opt/hiddify-manager/hiddify-panel/app.cfg
3029
environment:
3130
REDIS_URI_MAIN: 'redis://:REDIS_STRONG_PASS@redis:6379/0'
3231
REDIS_URI_SSH: 'redis://:REDIS_STRONG_PASS@redis:6379/1'

docker-init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ rm -rf /opt/hiddify-manager/log/*.lock
55
cd $(dirname -- "$0")
66
DO_NOT_INSTALL=true ./install.sh install-docker --no-gui $@
77
./status.sh --no-gui
8+
./apply_configs.sh --no-gui
89

910
echo Hiddify is started!!!! in 5 seconds you will see the system logs
1011
sleep 5

hiddify-panel/app.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ DEBUG=False
55
RUN_HOST=0.0.0.0
66
RUN_PORT=9000
77

8-
DB_VERSION=0SQLALCHEMY_DATABASE_URI ='mysql+mysqldb://hiddifypanel:MYSQL_STRONG_PASS@mariadb/hiddifypanel?charset=utf8mb4'
8+
DB_VERSION=0
9+
SQLALCHEMY_DATABASE_URI ='mysql+mysqldb://hiddifypanel:MYSQL_STRONG_PASS@mariadb/hiddifypanel?charset=utf8mb4'
910
REDIS_URI_MAIN = 'redis://:REDIS_STRONG_PASS@redis:6379/0'
1011
REDIS_URI_SSH = 'redis://:REDIS_STRONG_PASS@redis:6379/1'

0 commit comments

Comments
 (0)