This commit is contained in:
Zengtudor 2024-11-10 18:28:26 +08:00
parent f3dd6e1993
commit 84180475d0
4 changed files with 40 additions and 2 deletions

6
rxr_kodbox/.env Normal file
View File

@ -0,0 +1,6 @@
MYSQL_ROOT_PASSWORD=MYSQL_ROOT_PASSWORD
MYSQL_DATABASE=MYSQL_DATABASE
MYSQL_USER=MYSQL_USER
MYSQL_PASSWORD=MYSQL_PASSWORD
KOD_PATH=/root/kodbox
DATA_PATH=/root/great_wall/file

View File

@ -0,0 +1,32 @@
version: "3.5"
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ${KOD_PATH}/db:/var/lib/mysql #左边 ./db 代表数据库持久化目录位置
environment:
- "TZ=Asia/Shanghai"
- "MYSQL_ROOT_PASSWORD"
- "MYSQL_DATABASE"
- "MYSQL_USER"
- "MYSQL_PASSWORD"
app:
image: kodcloud/kodbox
ports:
- 8080:80 #左边 80 是主机访问端口,可按需修改
links:
- db
- redis
volumes:
- ${KOD_PATH}/site:/var/www/html #左边 ./site 代表kodbox持久化目录位置
- ${DATA_PATH}:/data
restart: always
redis:
image: redis:alpine
environment:
- "TZ=Asia/Shanghai"
restart: always

View File

@ -1 +1 @@
PATH=/root/great_wall/syncthing
PATH=/root/great_wall/file/syncthing

View File

@ -8,7 +8,7 @@ services:
- PUID=1000
- PGID=1000
volumes:
- ${PATH}/syncthing:/var/syncthing
- ${PATH}/syncthing-setting:/var/syncthing
- ${PATH}:/file
network_mode: host
restart: unless-stopped