From f3954f974f8b1c1781ad8d3693614b684ec733ff Mon Sep 17 00:00:00 2001 From: Tom Ernst Date: Sat, 12 Sep 2026 11:44:34 +0200 Subject: [PATCH] [verified] config: expose Docker service on port 8122 --- README.md | 15 ++++++++------- compose.yaml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b62c12b..0b43059 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,11 @@ Build and run the image directly: ```bash docker build -t edentext . -docker run --rm -p 127.0.0.1:8080:80 edentext +docker run --rm -p 0.0.0.0:8122:80 edentext ``` -Then open . +Then open or use the Docker host's IP address from +another machine. Alternatively, use Docker Compose: @@ -107,15 +108,15 @@ Alternatively, use Docker Compose: docker compose up --build -d ``` -The Compose service binds EdenText to by default. To use -a different host port, set `EDENTEXT_PORT`, for example: +The Compose service listens on all host interfaces on port 8122 by default. To +use a different host port, set `EDENTEXT_PORT`, for example: ```bash -EDENTEXT_PORT=8081 docker compose up --build -d +EDENTEXT_PORT=8123 docker compose up --build -d ``` -Set `EDENTEXT_BIND_ADDRESS=0.0.0.0` to make the service reachable from other -machines. When finished, stop and remove it with: +Set `EDENTEXT_BIND_ADDRESS=127.0.0.1` to restrict access to the Docker host. +When finished, stop and remove the service with: ```bash docker compose down diff --git a/compose.yaml b/compose.yaml index c7ba3c2..f3af75a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,5 +4,5 @@ services: context: . image: edentext:local ports: - - "${EDENTEXT_BIND_ADDRESS:-127.0.0.1}:${EDENTEXT_PORT:-8080}:80" + - "${EDENTEXT_BIND_ADDRESS:-0.0.0.0}:${EDENTEXT_PORT:-8122}:80" restart: unless-stopped -- 2.54.0