docker部署整理 启动

This commit is contained in:
xxqfamous 2023-05-25 13:58:24 +08:00
parent 3dd62f40df
commit dd94480486
2 changed files with 5 additions and 3 deletions

View File

@ -31,8 +31,8 @@ services:
- ./gitea/start.sh:/start.sh
- /data/repositories:/data/repositories
command:
- bash /start.sh
- gitea admin user create --username root --password gitlink#2023 --email root@example.org --config /etc/gitea/app.ini
- 'bash'
- '/start.sh'
environment:
- GITEA_WORK_DIR = /var/lib/gitea
- GITEA__database__DB_TYPE=mysql
@ -55,7 +55,7 @@ services:
- MYSQL_PWD=gitea
- MYSQL_HOST=mysql
- GITEA_USER=root
- GITEA_PWD=gitlink#2023
- GITEA_PWD=gitlink#2023 #GITEA_PWD from gitea/start.sh
- GITEA_URL=gitea
command:
- bash -l -c "source /etc/profile.d/rvm.sh"

View File

@ -1,3 +1,5 @@
#!/bin/bash
cp /gitea_hat/gitea_hat /usr/local/bin/gitea
/usr/local/bin/gitea admin user create --username root --password gitlink#2023 --email root@example.org --config /etc/gitea/app.ini
/usr/local/bin/gitea web --config /etc/gitea/app.ini