Another attempt via dhcp

This commit is contained in:
Cian Hughes
2024-01-12 19:00:38 +00:00
parent 7045ec3d45
commit 076e558e75
3 changed files with 6 additions and 6 deletions

View File

@@ -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

6
deploy
View File

@@ -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!")

View File

@@ -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"