chore(docker): pin container name to zoosteo-web
Docker Compose v2 always appends a replica index (-1) to container names by default. Single-instance service doesn't need scaling → pin container_name for stable references in scripts and docs. DEPLOY.md log-prune command updated to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
dbd2bf30e9
commit
7d214ed586
2 files changed
+2
-1
No files matched your search
@@ -615,7 +615,7 @@ from `/var/lib/docker/containers/<id>/*.log` anyway, lower the cap in
|
|||||||
(`/etc/docker/daemon.json`). Host nginx logs in `/var/log/nginx/`;
|
(`/etc/docker/daemon.json`). Host nginx logs in `/var/log/nginx/`;
|
||||||
rotate via logrotate (default Ubuntu config). Certbot logs in
|
rotate via logrotate (default Ubuntu config). Certbot logs in
|
||||||
`/var/log/letsencrypt/`.
|
`/var/log/letsencrypt/`.
|
||||||
- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' zoosteo-app-1)`.
|
- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' zoosteo-web)`.
|
||||||
- **Key rotation**: `.env` carries no secret material, but if
|
- **Key rotation**: `.env` carries no secret material, but if
|
||||||
`APP_BRAND_NAME` etc. need to change, edit `.env` + `docker compose up
|
`APP_BRAND_NAME` etc. need to change, edit `.env` + `docker compose up
|
||||||
-d` (no rebuild — `entrypoint.sh` reads env on container start).
|
-d` (no rebuild — `entrypoint.sh` reads env on container start).
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: zoosteo-web
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|||||||
Reference in new issue
Block a user