mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Flesh out docker-compose.yml with a complete, self-documenting example
Add container_name, an image tag, direct port mapping, and an explicit PORT env var instead of pointing to a separate override file just to publish a port.
This commit is contained in:
1 parent
6a0ba6f732
commit
302c025018
2 files changed
+16
-9
No files matched your search
@@ -99,17 +99,25 @@ cd webspeak3
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it — the container builds the frontend, gateway, and Rust connector for you. Open `http://localhost:8080` (or your configured port) and connect to any TeamSpeak 3 server.
|
That's it — the container builds the frontend, gateway, and Rust connector for you. Open `http://localhost:8080` and connect to any TeamSpeak 3 server.
|
||||||
|
|
||||||
Port publishing is deployment-specific — set it in a local, gitignored `docker-compose.override.yml`:
|
This is what ships in [`docker-compose.yml`](docker-compose.yml):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
webspeak3:
|
webspeak3:
|
||||||
|
build: .
|
||||||
|
image: moepchi/webspeak3:latest
|
||||||
|
container_name: webspeak3
|
||||||
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
environment:
|
||||||
|
- PORT=8080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Running on a different host port? Just change the left side of `ports:` (e.g. `"9987:8080"`).
|
||||||
|
|
||||||
Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3):
|
Prefer to skip the build entirely? A prebuilt image is published on [Docker Hub](https://hub.docker.com/r/moepchi/webspeak3):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
+6
-7
@@ -1,11 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
webspeak3:
|
webspeak3:
|
||||||
build: .
|
build: .
|
||||||
|
image: moepchi/webspeak3:latest
|
||||||
|
container_name: webspeak3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Port publishing is deployment-specific (depends on what's free on the
|
ports:
|
||||||
# host) - set it in a local, gitignored docker-compose.override.yml, e.g.:
|
- "8080:8080"
|
||||||
#
|
environment:
|
||||||
# services:
|
- PORT=8080
|
||||||
# webspeak3:
|
|
||||||
# ports:
|
|
||||||
# - "8080:8080"
|
|
||||||
Reference in new issue
Block a user