add container_name

This commit is contained in:
2026-03-05 14:08:56 +00:00
parent a454f82000
commit 9c1a858410
2 changed files with 2 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
services: services:
croc: croc:
image: schollz/croc:10 image: schollz/croc:10
container_name: croc
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
ports: ports:

View File

@@ -1,6 +1,7 @@
services: services:
watchtower: watchtower:
image: nickfedor/watchtower:latest image: nickfedor/watchtower:latest
container_name: watchtower
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock