gitea. Adding HTTP_BIND_ADDR for HTTP port.

This commit is contained in:
Alexey Skobkin 2022-03-02 02:54:35 +03:00
parent 9b25fe729f
commit 11ce6e7f02
3 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ USER_GID=1000
HOST_DATA_DIR=./data
HOST_PG_DATA_DIR=./db
HTTP_BIND_ADDR=127.0.0.1
EXT_HTTP_PORT=3000
EXT_SSH_PORT=222

View File

@ -7,7 +7,7 @@ services:
restart: unless-stopped
network_mode: host
ports:
- "${EXT_HTTP_PORT:-3000}:3000"
- "${HTTP_BIND_ADDR:-127.0.0.1}:${EXT_HTTP_PORT:-3000}:3000"
- "${EXT_SSH_PORT:-222}:22"
volumes:
- "${HOST_DATA_DIR:-./data}:/data"

View File

@ -14,7 +14,7 @@ services:
networks:
- gitea
ports:
- "${EXT_HTTP_PORT:-3000}:3000"
- "${HTTP_BIND_ADDR:-127.0.0.1}:${EXT_HTTP_PORT:-3000}:3000"
- "${EXT_SSH_PORT:-222}:22"
volumes:
- "${HOST_DATA_DIR:-./data}:/data"