summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClawd <ai@clawd.bot>2026-02-16 17:18:07 -0800
committerClawd <ai@clawd.bot>2026-02-16 17:18:07 -0800
commit3cd1ee83993b2543a7701a48d048c417c52bfdcb (patch)
treee1977c953ef9f8ba97c1fbe8af5aa4a90824fad1
parent1abcef3197371c47c67c9238ab8ba9b185355d94 (diff)
Fix Docker port mapping: map host port to container port 80
Most Docker web containers (nginx, etc.) listen on port 80 internally. The previous mapping assumed the container listened on the allocated port.
-rw-r--r--internal/templates/templates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/templates/templates.go b/internal/templates/templates.go
index b68a504..f1b9a9e 100644
--- a/internal/templates/templates.go
+++ b/internal/templates/templates.go
@@ -216,7 +216,7 @@ Requires=docker.service
216Type=simple 216Type=simple
217ExecStartPre=-/usr/bin/docker rm -f {{.Name}} 217ExecStartPre=-/usr/bin/docker rm -f {{.Name}}
218ExecStart=/usr/bin/docker run --rm --name {{.Name}} \ 218ExecStart=/usr/bin/docker run --rm --name {{.Name}} \
219 -p 127.0.0.1:{{.Port}}:{{.Port}} \ 219 -p 127.0.0.1:{{.Port}}:80 \
220 --env-file /etc/ship/env/{{.Name}}.env \ 220 --env-file /etc/ship/env/{{.Name}}.env \
221 -v /var/lib/{{.Name}}/data:/data \ 221 -v /var/lib/{{.Name}}/data:/data \
222 {{.Name}}:latest 222 {{.Name}}:latest