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/`;
|
||||
rotate via logrotate (default Ubuntu config). Certbot logs in
|
||||
`/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
|
||||
`APP_BRAND_NAME` etc. need to change, edit `.env` + `docker compose up
|
||||
-d` (no rebuild — `entrypoint.sh` reads env on container start).
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
app:
|
||||
container_name: zoosteo-web
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
Reference in new issue
Block a user