update
This commit is contained in:
parent
f3dd6e1993
commit
84180475d0
6
rxr_kodbox/.env
Normal file
6
rxr_kodbox/.env
Normal 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
|
32
rxr_kodbox/docker-compose.yml
Normal file
32
rxr_kodbox/docker-compose.yml
Normal 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
|
@ -1 +1 @@
|
||||
PATH=/root/great_wall/syncthing
|
||||
PATH=/root/great_wall/file/syncthing
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user