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_DATA_DIR=./data
HOST_PG_DATA_DIR=./db HOST_PG_DATA_DIR=./db
HTTP_BIND_ADDR=127.0.0.1
EXT_HTTP_PORT=3000 EXT_HTTP_PORT=3000
EXT_SSH_PORT=222 EXT_SSH_PORT=222

View file

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

View file

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