autocommit
This commit is contained in:
parent
7ca15bd018
commit
deeb8638af
@ -1,6 +1,6 @@
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.22.0
|
||||
image: gitea/gitea:1.22.1
|
||||
container_name: gitea
|
||||
env_file:
|
||||
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
|
||||
@ -31,7 +31,7 @@ services:
|
||||
GITEA__repository__ENABLE_PUSH_CREATE_ORG: true
|
||||
|
||||
GITEA__security__INSTALL_LOCK: true
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxynet
|
||||
depends_on:
|
||||
@ -58,7 +58,7 @@ services:
|
||||
gitea-cache:
|
||||
container_name: gitea-cache
|
||||
image: redis:7.2.5-alpine3.20
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxynet
|
||||
healthcheck:
|
||||
|
22
install.sh
Normal file
22
install.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo -e "\033[31mThis script requires superuser rights.\033[0m"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
trap 'echo -e "\033[31minstall.sh: Something went wrong\033[0m"; exit 1' ERR
|
||||
set -e
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
echo "Install gitea..."
|
||||
cd /data/utils
|
||||
GITEA__database__PASSWD=$(pwgen -s 20 1);
|
||||
sudo bash env-gen.sh GITEA__database__PASSWD $GITEA__database__PASSWD
|
||||
sudo bash init-db.sh gitea $GITEA__database__PASSWD
|
||||
cd /data/gitea
|
||||
sudo docker compose up -d
|
||||
|
||||
trap - ERR
|
||||
echo "Install postgres complete"
|
Loading…
Reference in New Issue
Block a user