separate watchtower compose file

This commit is contained in:
coolnsx
2024-02-02 02:18:11 +05:30
parent 03d76d4fcd
commit 65b1cde4bd
4 changed files with 11 additions and 31 deletions

View File

@@ -1,9 +1,5 @@
version: "3" version: "3"
networks:
gitea:
external: false
services: services:
server: server:
image: gitea/gitea:latest image: gitea/gitea:latest
@@ -17,7 +13,6 @@ services:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
#- "3000:3000"
- "2222:22" - "2222:22"
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -22,19 +22,6 @@ services:
networks: networks:
- coolans - coolans
watchtower:
image: containrrr/watchtower
restart: unless-stopped
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- coolans
environment:
- TZ=Asia/Kolkata
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 2 * * *
volumes: volumes:
nextcloud_aio_mastercontainer: nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer name: nextcloud_aio_mastercontainer

View File

@@ -13,19 +13,6 @@ services:
networks: networks:
- nginx_proxy - nginx_proxy
watchtower:
image: containrrr/watchtower
restart: unless-stopped
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- nginx_proxy
environment:
- TZ=Asia/Kolkata
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 2 * * *
networks: networks:
nginx_proxy: nginx_proxy:
name: nginx_proxy name: nginx_proxy

View File

@@ -0,0 +1,11 @@
services:
watchtower:
image: containrrr/watchtower
restart: unless-stopped
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Asia/Kolkata
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 2 * * *