Update gitea to run on host loopback.

Also update volume for the mounted slab.
This commit is contained in:
Eli Ribble 2024-02-21 09:03:56 -08:00
parent dc70df7014
commit ee5551662a
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
GITEA__service__DISABLE_REGISTRATION=true
GITEA__mailer__ENABLED=true
GITEA__database__DB_TYPE=postgres
GITEA__database__HOST=postgresql:5432
GITEA__database__HOST=10.0.2.2:5432
GITEA__database__NAME=gitea
GITEA__database__USER=gitea_user
GITEA__database__PASSWD=secret

View File

@ -5,11 +5,10 @@ podman run \
-d \
--env-file /opt/podman/env-gitea \
--name gitea \
--net slirp4netns:port_handler=slirp4netns \
--net slirp4netns:allow_host_loopback=true \
-p 127.0.0.1:10110:3000 \
-p 127.0.0.1:2222:22 \
--restart unless-stopped \
-v gitea-data:/data \
-v /mnt/slab1/gitea:/data \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
docker.io/gitea/gitea:latest