mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
restart docker only install
This commit is contained in:
parent
ab6d247549
commit
ecb9f62118
5 changed files with 24 additions and 5 deletions
|
@ -47,7 +47,8 @@ services:
|
|||
- DISABLE_SSH=true
|
||||
- RUN_MODE=prod
|
||||
- HTTP_PORT=3000
|
||||
- DISABLE_REGISTRATION=false
|
||||
- DISABLE_REGISTRATION=true
|
||||
- GITEA__server__OFFLINE_MODE=true
|
||||
- REQUIRE_SIGNIN_VIEW=false
|
||||
- ROOT_URL=http://localhost/w9git/
|
||||
labels:
|
||||
|
|
|
@ -2,10 +2,17 @@
|
|||
|
||||
## Development
|
||||
|
||||
From official Gitea image, and:
|
||||
### What do done?
|
||||
|
||||
From official Gitea image, we have complete these modification:
|
||||
|
||||
- Complete install wizard automaticlly by enviroment INSTALL_LOCK
|
||||
- Use default URL localhost for Host/Root_URL settings
|
||||
- create administrator user
|
||||
|
||||
### Environments
|
||||
|
||||
Any app.ini items can set by environment, refer to [Managing Deployments With Environment Variables](https://docs.gitea.com/installation/install-with-docker#managing-deployments-with-environment-variables)
|
||||
|
||||
## User
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# This file only for your reference, it maybe not always update
|
||||
# it from: https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini
|
||||
|
||||
APP_NAME = gitea
|
||||
RUN_MODE = prod
|
||||
RUN_USER = git
|
||||
|
|
|
@ -362,7 +362,10 @@ set_docker(){
|
|||
sudo systemctl stop firewalld
|
||||
sudo systemctl disable firewalld
|
||||
fi
|
||||
sudo systemctl restart docker
|
||||
|
||||
if [ "$execute_mode" = "install" ]; then
|
||||
sudo systemctl restart docker
|
||||
fi
|
||||
}
|
||||
|
||||
install_backends() {
|
||||
|
@ -484,7 +487,9 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
|
||||
echo "Restart Docker for Firewalld..."
|
||||
sudo systemctl restart docker
|
||||
if [ "$execute_mode" = "install" ]; then
|
||||
sudo systemctl restart docker
|
||||
fi
|
||||
|
||||
endtime=$(date +%s)
|
||||
runtime=$((endtime-starttime))
|
||||
|
|
|
@ -162,4 +162,7 @@ fi
|
|||
|
||||
echo -e "\n\n-------- Docker --------"
|
||||
Upgrade_Docker
|
||||
Start_Docker
|
||||
|
||||
if [ -z "$execute_mode" ] || [ "$execute_mode" = "install" ]; then
|
||||
Start_Docker
|
||||
fi
|
Loading…
Reference in a new issue