Make distroless the sole latest image and default Compose runtime
Build and Push Docker Image / build (push) Successful in 53s
Build and Push Docker Image / build (push) Successful in 53s
This commit is contained in:
1 parent
8b88089cb4
commit
4b53923829
7 files changed
+45
-137
No files matched your search
+4
-2
@@ -5,14 +5,16 @@ services:
|
||||
container_name: rtorrent
|
||||
environment:
|
||||
- TZ=${TZ}
|
||||
- HOME=/root
|
||||
volumes:
|
||||
- "${TORRENT_LOCATION}:/home/nfs_download:rw"
|
||||
- "${TORRENTRC}:/root/.rtorrent.rc"
|
||||
- "${TORRENTSESSION}:/home/nfs_download/rsession:rw"
|
||||
ports:
|
||||
- 5001
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 5001 || exit 1"]
|
||||
test: ["CMD", "/usr/local/bin/rtorrent-entrypoint", "--healthcheck"]
|
||||
interval: 10s # Check every 10 seconds
|
||||
timeout: 10s # Allow the command 5 seconds to complete
|
||||
retries: 5 # Number of consecutive failures before marking as 'unhealthy'
|
||||
@@ -36,4 +38,4 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
rtorrent:
|
||||
condition: service_healthy
|
||||
condition: service_healthy
|
||||
Reference in new issue
Block a user