diff --git a/rxr_kodbox/.env b/rxr_kodbox/.env new file mode 100644 index 0000000..846b8b0 --- /dev/null +++ b/rxr_kodbox/.env @@ -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 \ No newline at end of file diff --git a/rxr_kodbox/docker-compose.yml b/rxr_kodbox/docker-compose.yml new file mode 100644 index 0000000..3dbfc88 --- /dev/null +++ b/rxr_kodbox/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/rxr_syncthing/.env b/rxr_syncthing/.env index 52c7b50..c732f8c 100644 --- a/rxr_syncthing/.env +++ b/rxr_syncthing/.env @@ -1 +1 @@ -PATH=/root/great_wall/syncthing \ No newline at end of file +PATH=/root/great_wall/file/syncthing \ No newline at end of file diff --git a/rxr_syncthing/docker-compose.yml b/rxr_syncthing/docker-compose.yml index 5736afe..65436a3 100644 --- a/rxr_syncthing/docker-compose.yml +++ b/rxr_syncthing/docker-compose.yml @@ -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