add port setting
This commit is contained in:
1 parent
ef1c188807
commit
5368d6f32d
2 files changed
+3
-1
No files matched your search
@@ -8,3 +8,5 @@ COOKIE_SECURE=false
|
|||||||
# address the app listens on. 127.0.0.1 = this machine only.
|
# address the app listens on. 127.0.0.1 = this machine only.
|
||||||
# Reverse proxy on another machine (e.g. over Tailscale)? use this host's tailscale IP (tailscale ip -4)
|
# Reverse proxy on another machine (e.g. over Tailscale)? use this host's tailscale IP (tailscale ip -4)
|
||||||
BIND_ADDR=127.0.0.1
|
BIND_ADDR=127.0.0.1
|
||||||
|
# port exposed on the host (the container itself always listens on 8000)
|
||||||
|
HOST_PORT=8888
|
||||||
+1
-1
@@ -21,6 +21,6 @@ services:
|
|||||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
||||||
SECRET_KEY: ${SECRET_KEY}
|
SECRET_KEY: ${SECRET_KEY}
|
||||||
COOKIE_SECURE: ${COOKIE_SECURE:-false}
|
COOKIE_SECURE: ${COOKIE_SECURE:-false}
|
||||||
ports: ["${BIND_ADDR:-127.0.0.1}:8000:8000"] # set BIND_ADDR to this host's Tailscale IP; never 0.0.0.0
|
ports: ["${BIND_ADDR:-127.0.0.1}:${HOST_PORT:-8888}:8000"] # BIND_ADDR: this host's Tailscale IP, never 0.0.0.0. HOST_PORT: port on the host
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
Reference in new issue
Block a user