Merge pull request #44 from outis1one/claude/caddy2-fqdn-hosting-5coicz
Change host port from 8080 to 8888
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
|
||||
exposes it on `http://<docker-host>:8080`. Check it directly first:
|
||||
exposes it on `http://<docker-host>:8888`. Check it directly first:
|
||||
|
||||
```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
|
||||
|
||||
@@ -29,7 +29,7 @@ Add a block like this to your existing `Caddyfile` (replace
|
||||
|
||||
```caddyfile
|
||||
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
|
||||
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
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8888:80"
|
||||
|
||||
Reference in New Issue
Block a user