Expose Docker service on port 8122 #2

Merged
tom merged 1 commits from config/docker-public-8122 into main 2026-09-12 09:44:51 +00:00
2 changed files with 9 additions and 8 deletions

No files matched your search

+8 -7
View File
@@ -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 <http://localhost:8080>.
Then open <http://localhost:8122> 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 <http://localhost:8080> 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
+1 -1
View File
@@ -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