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>
12 lines
210 B
YAML
12 lines
210 B
YAML
services:
|
|
app:
|
|
container_name: zoosteo-web
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "${PORT:-8080}:${PORT:-8080}"
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|