From 076e558e7556e8bad904edcedf94c5d30e1bcd71 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 12 Jan 2024 19:00:38 +0000 Subject: [PATCH] Another attempt via dhcp --- backend.yaml | 4 ++-- deploy | 6 +++--- frontend.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend.yaml b/backend.yaml index 7ff3a5a..c13de64 100644 --- a/backend.yaml +++ b/backend.yaml @@ -91,8 +91,8 @@ services: MYSQL_USER: "elabftw" MYSQL_PASSWORD_FILE: /run/secrets/elabftw_sql_key MYSQL_ROOT_PASSWORD: "test" # MYSQL_RANDOM_ROOT_PASSWORD: 1 - MYSQL_HOST: "172.252.1.15" # Needs to allow access from the elabftw container - MYSQL_ROOT_HOST: "172.252.1.15" + MYSQL_HOST: "frontend_elabftw" # "172.252.1.15" # Needs to allow access from the elabftw container + MYSQL_ROOT_HOST: "frontend_elabftw" # "172.252.1.15" TZ: "Europe/Paris" volumes: - stack_elabftw_sql:/var/lib/mysql diff --git a/deploy b/deploy index 89c84e0..1eda117 100755 --- a/deploy +++ b/deploy @@ -81,9 +81,9 @@ def deploy_stack(username: str, password: str, stack_name: Optional[str] = "stac stacks = portainer.StacksApi(client) # Then, deploy the substacks using the API print("Deploying substacks via portainer API") - # portainer_deploy_stack("networks", stacks, endpoint_id) - # portainer_deploy_stack("volumes", stacks, endpoint_id) - # portainer_deploy_stack("backend", stacks, endpoint_id) + portainer_deploy_stack("networks", stacks, endpoint_id) + portainer_deploy_stack("volumes", stacks, endpoint_id) + portainer_deploy_stack("backend", stacks, endpoint_id) portainer_deploy_stack("frontend", stacks, endpoint_id) print("Stack deployed!") diff --git a/frontend.yaml b/frontend.yaml index 254c101..dfdf210 100644 --- a/frontend.yaml +++ b/frontend.yaml @@ -73,7 +73,7 @@ services: - elabftw_secret_key environment: SECRET_KEY: $${cat /run/secrets/elabftw_secret_key} - DB_HOST: "172.252.1.7" + DB_HOST: "backend_mysql" # "172.252.1.7" DB_PORT: "3306" DB_NAME: "elabftw" DB_USER: "elabftw"