[verified] config: expose Docker service on port 8122
CI / check-and-test (pull_request) Canceled after 0s
CI / lo-roundtrip (pull_request) Canceled after 0s
CI / browser (chromium, ubuntu-latest) (pull_request) Canceled after 0s
CI / browser (firefox, ubuntu-latest) (pull_request) Canceled after 0s
CI / browser (webkit, macos-latest) (pull_request) Canceled after 0s
CLA / cla (pull_request_target) Canceled after 0s
CI / check-and-test (pull_request) Canceled after 0s
CI / lo-roundtrip (pull_request) Canceled after 0s
CI / browser (chromium, ubuntu-latest) (pull_request) Canceled after 0s
CI / browser (firefox, ubuntu-latest) (pull_request) Canceled after 0s
CI / browser (webkit, macos-latest) (pull_request) Canceled after 0s
CLA / cla (pull_request_target) Canceled after 0s
This commit is contained in:
1 parent
54020c93d0
commit
f3954f974f
2 files changed
+9
-8
No files matched your search
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user