docker-compose + exception fix

This commit is contained in:
s.mostryukov 2025-06-18 16:38:54 +03:00
parent c1d455efb0
commit e80821e6da
2 changed files with 9 additions and 7 deletions

View File

@ -76,6 +76,8 @@ def send_command(connection: ConnectHandler, command: str) -> str:
result: str = connection.send_command(command, read_timeout=30)
except exceptions.NetmikoTimeoutException:
result = "NetmikoTimeoutException"
except exceptions.ReadTimeout:
result = "NetmikoTimeoutException"
return result

View File

@ -1,10 +1,8 @@
version: '3.3'
services:
net-backup:
image: git.sm8255082.ru/osnova/net-backup:1.0.0
restart: always
image: git.sm8255082.ru/osnova/net-backup:1.1.0
restart: "no"
volumes:
- ./logs:/app/logs
- ./config:/app/config
@ -12,7 +10,9 @@ services:
environment:
- TZ=Europe/Moscow
- NET_DEV_USER=admin
- NET_DEV_DOMAIN=local
#- NET_DEV_DOMAIN=local
- NET_DEV_PWD=password
- GIT_USERNAME=git_user
- GIT_TOKEN=bla-bla-lba
#- GIT_USERNAME=git_user
#- GIT_TOKEN=bla-bla-lba
#- MAIL_USER=mail_user
#- MAIL_PWD=bla-bla-lba