Change host port from 8080 to 8888
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PbwKCCj1vwAoqgRYDoqgeL
This commit is contained in:
+5
-5
@@ -10,13 +10,13 @@ docker compose up -d --build
|
|||||||
```
|
```
|
||||||
|
|
||||||
This builds the image from `Dockerfile` (nginx serving `index.html`) and
|
This builds the image from `Dockerfile` (nginx serving `index.html`) and
|
||||||
exposes it on `http://<docker-host>:8080`. Check it directly first:
|
exposes it on `http://<docker-host>:8888`. Check it directly first:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl http://localhost:8080/healthz # -> ok
|
curl http://localhost:8888/healthz # -> ok
|
||||||
```
|
```
|
||||||
|
|
||||||
Change the `8080:80` mapping in `docker-compose.yml` if that port is taken.
|
Change the `8888:80` mapping in `docker-compose.yml` if that port is taken.
|
||||||
|
|
||||||
## 2. Point Caddy at it
|
## 2. Point Caddy at it
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ Add a block like this to your existing `Caddyfile` (replace
|
|||||||
|
|
||||||
```caddyfile
|
```caddyfile
|
||||||
drums.example.com {
|
drums.example.com {
|
||||||
reverse_proxy localhost:8080
|
reverse_proxy localhost:8888
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ host's address or internal hostname instead of `localhost`:
|
|||||||
|
|
||||||
```caddyfile
|
```caddyfile
|
||||||
drums.example.com {
|
drums.example.com {
|
||||||
reverse_proxy 10.0.0.5:8080
|
reverse_proxy 10.0.0.5:8888
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,4 +4,4 @@ services:
|
|||||||
container_name: drum-rhythm-game
|
container_name: drum-rhythm-game
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8888:80"
|
||||||
|
|||||||
Reference in New Issue
Block a user