Merge pull request #5 from cerc-io/dboreham/gitea-unattended-install

Basic unattended install
This commit is contained in:
David Boreham 2023-02-12 22:16:59 +00:00 committed by GitHub
commit ecfd565a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ networks:
services:
server:
image: gitea/gitea:1.17.1
image: gitea/gitea:1.18.3
container_name: gitea
environment:
- USER_UID=1000
@ -19,6 +19,7 @@ services:
- GITEA__server__HTTP_PORT=3000
- GITEA__server__LOCAL_ROOT_URL=http://gitea.local:3000/
- GITEA__server__ROOT_URL=http://gitea.local:3000/
- GITEA__security__INSTALL_LOCK=true
restart: always
networks:
- gitea

3
gitea/initialize-gitea.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/env bash
# Run this script once after bringing up gitea in docker compose
docker compose exec --user git server gitea admin user create --admin --username gitea_admin --password admin1234 --email gitea_admin@example.com

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/env bash
mkdir -p ./gitea
mkdir -p ./gitea/ssh
mkdir -p ./postgres