mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Compose concatenates ports: lists across an override file instead of replacing them, so the ports mapping added in the last commit caused the deployed container to try publishing both 8080 and the override's 8188, colliding with another service already on 8080. Move ports back out of the base file (override-only, as before) and keep the new container_name/image/environment fields.
19 lines
585 B
YAML
19 lines
585 B
YAML
services:
|
|
webspeak3:
|
|
build: .
|
|
image: moepchi/webspeak3:latest
|
|
container_name: webspeak3
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=8080
|
|
# Port publishing is deployment-specific and left out of this file on
|
|
# purpose - Compose concatenates `ports:` lists across an override file
|
|
# instead of replacing them, so adding one here would double-publish
|
|
# instead of letting an override change it. Set it in a local, gitignored
|
|
# docker-compose.override.yml:
|
|
#
|
|
# services:
|
|
# webspeak3:
|
|
# ports:
|
|
# - "8080:8080"
|