Basic unattended install #5
@ -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
3
gitea/initialize-gitea.sh
Executable 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
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/env bash
|
||||
mkdir -p ./gitea
|
||||
mkdir -p ./gitea/ssh
|
||||
mkdir -p ./postgres
|
||||
|
Loading…
Reference in New Issue
Block a user