Add docker-compose

master
meskio 3 years ago
parent 041fa42a7a
commit 5d5a16b5fe
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 2
      Dockerfile
  2. 7
      docker-compose.yml

@ -19,6 +19,6 @@ LABEL "com.centurylinklabs.watchtower"="true"
# copy files from other container
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /go/watchtower/watchtower /watchtower
COPY --from=builder /watchtower/watchtower /watchtower
ENTRYPOINT ["/watchtower"]

@ -0,0 +1,7 @@
watchtower:
container_name: watchtower
hostname: watchtower
restart: always
image: registry.sindominio.net/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Loading…
Cancel
Save