Update gitea to run on host loopback.
Also update volume for the mounted slab.
This commit is contained in:
parent
dc70df7014
commit
ee5551662a
|
@ -1,7 +1,7 @@
|
||||||
GITEA__service__DISABLE_REGISTRATION=true
|
GITEA__service__DISABLE_REGISTRATION=true
|
||||||
GITEA__mailer__ENABLED=true
|
GITEA__mailer__ENABLED=true
|
||||||
GITEA__database__DB_TYPE=postgres
|
GITEA__database__DB_TYPE=postgres
|
||||||
GITEA__database__HOST=postgresql:5432
|
GITEA__database__HOST=10.0.2.2:5432
|
||||||
GITEA__database__NAME=gitea
|
GITEA__database__NAME=gitea
|
||||||
GITEA__database__USER=gitea_user
|
GITEA__database__USER=gitea_user
|
||||||
GITEA__database__PASSWD=secret
|
GITEA__database__PASSWD=secret
|
||||||
|
|
5
gitea.sh
5
gitea.sh
|
@ -5,11 +5,10 @@ podman run \
|
||||||
-d \
|
-d \
|
||||||
--env-file /opt/podman/env-gitea \
|
--env-file /opt/podman/env-gitea \
|
||||||
--name 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:10110:3000 \
|
||||||
-p 127.0.0.1:2222:22 \
|
-p 127.0.0.1:2222:22 \
|
||||||
--restart unless-stopped \
|
-v /mnt/slab1/gitea:/data \
|
||||||
-v gitea-data:/data \
|
|
||||||
-v /etc/timezone:/etc/timezone:ro \
|
-v /etc/timezone:/etc/timezone:ro \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
docker.io/gitea/gitea:latest
|
docker.io/gitea/gitea:latest
|
||||||
|
|
Loading…
Reference in New Issue