修改部署文件
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yangzuhao 2023-02-12 14:38:12 +08:00
parent 5e319f768f
commit 7598d0b2b9
3 changed files with 5 additions and 8 deletions

View File

@ -2,7 +2,7 @@
EXEC_USER=work EXEC_USER=work
su - ${EXEC_USER} su - ${EXEC_USER}
DEPLOY_PATH="/home/work/apps/wiki" DEPLOY_PATH="/home/work/docker/wiki"
cd ${DEPLOY_PATH} cd ${DEPLOY_PATH}
docker-compose up -d docker-compose up -d

View File

@ -3,8 +3,7 @@
EXEC_USER=work EXEC_USER=work
su - ${EXEC_USER} su - ${EXEC_USER}
DEPLOY_PATH="/home/work/apps/wiki" DEPLOY_PATH="/home/work/docker/wiki"
LOG_PATH="${DEPLOY_PATH}/log"
folder_exists() { folder_exists() {
if [ -d "$1" ]; then if [ -d "$1" ]; then
@ -22,5 +21,4 @@ pack_docker() {
} }
folder_exists ${DEPLOY_PATH} folder_exists ${DEPLOY_PATH}
folder_exists ${LOG_PATH}
pack_docker ${DEPLOY_PATH} pack_docker ${DEPLOY_PATH}

View File

@ -1,4 +1,4 @@
version: 2 version: "3"
services: services:
docker-ui: docker-ui:
hostname: wiki.flyaha.top hostname: wiki.flyaha.top
@ -16,6 +16,5 @@ services:
volumes: volumes:
- /home/work/apps/wiki/data:/wiki/data/ - /home/work/apps/wiki/data:/wiki/data/
networks: networks:
default: flyaha:
external: external: true
name: flyaha