修改启动配置文件
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yangzuhao 2023-02-12 15:29:27 +08:00
parent 3394a49139
commit 19be9ff3e3
3 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
DEPLOY_PATH="/home/work/docker/wiki"
chown -R work:work ${DEPLOY_PATH}
EXEC_USER=work EXEC_USER=work
su - ${EXEC_USER} su - ${EXEC_USER}
DEPLOY_PATH="/home/work/docker/wiki"
cd ${DEPLOY_PATH} cd ${DEPLOY_PATH}
docker-compose up -d docker-compose up -d

View File

@ -21,4 +21,5 @@ pack_docker() {
} }
folder_exists ${DEPLOY_PATH} folder_exists ${DEPLOY_PATH}
folder_exists ${DEPLOY_PATH}/data
pack_docker ${DEPLOY_PATH} pack_docker ${DEPLOY_PATH}

View File

@ -15,6 +15,7 @@ services:
- DB_NAME=www_wiki - DB_NAME=www_wiki
volumes: volumes:
- /home/work/apps/wiki/data:/wiki/data/ - /home/work/apps/wiki/data:/wiki/data/
- /home/work/apps/wiki/config:/config
networks: networks:
flyaha: flyaha:
external: true external: true