Merge pull request 'Expose Docker service on port 8122' (#2) from config/docker-public-8122 into main
CI / check-and-test (push) Canceled after 0s
CI / lo-roundtrip (push) Canceled after 0s
CI / browser (chromium, ubuntu-latest) (push) Canceled after 0s
CI / browser (firefox, ubuntu-latest) (push) Canceled after 0s
CI / browser (webkit, macos-latest) (push) Canceled after 0s
Deploy / deploy (push) Canceled after 0s

Expose Docker service on port 8122
This commit was merged in pull request #2.
This commit is contained in:
tom committed 2026-09-12 09:44:50 +00:00
commit 83c7195531
2 files changed
+9 -8

No files matched your search

+8 -7
View File
@@ -96,10 +96,11 @@ Build and run the image directly:
```bash ```bash
docker build -t edentext . 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: Alternatively, use Docker Compose:
@@ -107,15 +108,15 @@ Alternatively, use Docker Compose:
docker compose up --build -d docker compose up --build -d
``` ```
The Compose service binds EdenText to <http://localhost:8080> by default. To use The Compose service listens on all host interfaces on port 8122 by default. To
a different host port, set `EDENTEXT_PORT`, for example: use a different host port, set `EDENTEXT_PORT`, for example:
```bash ```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 Set `EDENTEXT_BIND_ADDRESS=127.0.0.1` to restrict access to the Docker host.
machines. When finished, stop and remove it with: When finished, stop and remove the service with:
```bash ```bash
docker compose down docker compose down
+1 -1
View File
@@ -4,5 +4,5 @@ services:
context: . context: .
image: edentext:local image: edentext:local
ports: 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 restart: unless-stopped