Adding a configuration for portainer data path

This commit is contained in:
ewandor committed 2023-09-21 17:08:45 +02:00
1 parent 1b3f577486
commit dda3414428
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -1 +1,2 @@
access_token = 'ptr_2Wx6aA26hEEcsPbi2iVyRcuDt6/9tjHlkg+7z9btkjw=' access_token = 'example_access_token'
portainer_compose_dir = '/absolute/path/to/portainer-data/compose'
+1 -1
View File
@@ -5,7 +5,7 @@ import requests
import config import config
DOCKER_COMPOSE_PATH = '/srv/docker/portainer/portainer-data/compose/{}/docker-compose.yml' DOCKER_COMPOSE_PATH = config.portainer_compose_dir + '/{}/docker-compose.yml'
CURRENT_DIR = os.path.dirname(__file__) CURRENT_DIR = os.path.dirname(__file__)
BASH_COMPANION_SCRIPT = CURRENT_DIR + '/docker_updater.sh' BASH_COMPANION_SCRIPT = CURRENT_DIR + '/docker_updater.sh'