mirror of
https://github.com/Cian-H/I-Form_Research_Server_Stack.git
synced 2025-12-23 14:42:02 +00:00
Another attempt via dhcp
This commit is contained in:
@@ -91,8 +91,8 @@ services:
|
|||||||
MYSQL_USER: "elabftw"
|
MYSQL_USER: "elabftw"
|
||||||
MYSQL_PASSWORD_FILE: /run/secrets/elabftw_sql_key
|
MYSQL_PASSWORD_FILE: /run/secrets/elabftw_sql_key
|
||||||
MYSQL_ROOT_PASSWORD: "test" # MYSQL_RANDOM_ROOT_PASSWORD: 1
|
MYSQL_ROOT_PASSWORD: "test" # MYSQL_RANDOM_ROOT_PASSWORD: 1
|
||||||
MYSQL_HOST: "172.252.1.15" # Needs to allow access from the elabftw container
|
MYSQL_HOST: "frontend_elabftw" # "172.252.1.15" # Needs to allow access from the elabftw container
|
||||||
MYSQL_ROOT_HOST: "172.252.1.15"
|
MYSQL_ROOT_HOST: "frontend_elabftw" # "172.252.1.15"
|
||||||
TZ: "Europe/Paris"
|
TZ: "Europe/Paris"
|
||||||
volumes:
|
volumes:
|
||||||
- stack_elabftw_sql:/var/lib/mysql
|
- stack_elabftw_sql:/var/lib/mysql
|
||||||
|
|||||||
6
deploy
6
deploy
@@ -81,9 +81,9 @@ def deploy_stack(username: str, password: str, stack_name: Optional[str] = "stac
|
|||||||
stacks = portainer.StacksApi(client)
|
stacks = portainer.StacksApi(client)
|
||||||
# Then, deploy the substacks using the API
|
# Then, deploy the substacks using the API
|
||||||
print("Deploying substacks via portainer API")
|
print("Deploying substacks via portainer API")
|
||||||
# portainer_deploy_stack("networks", stacks, endpoint_id)
|
portainer_deploy_stack("networks", stacks, endpoint_id)
|
||||||
# portainer_deploy_stack("volumes", stacks, endpoint_id)
|
portainer_deploy_stack("volumes", stacks, endpoint_id)
|
||||||
# portainer_deploy_stack("backend", stacks, endpoint_id)
|
portainer_deploy_stack("backend", stacks, endpoint_id)
|
||||||
portainer_deploy_stack("frontend", stacks, endpoint_id)
|
portainer_deploy_stack("frontend", stacks, endpoint_id)
|
||||||
print("Stack deployed!")
|
print("Stack deployed!")
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ services:
|
|||||||
- elabftw_secret_key
|
- elabftw_secret_key
|
||||||
environment:
|
environment:
|
||||||
SECRET_KEY: $${cat /run/secrets/elabftw_secret_key}
|
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_PORT: "3306"
|
||||||
DB_NAME: "elabftw"
|
DB_NAME: "elabftw"
|
||||||
DB_USER: "elabftw"
|
DB_USER: "elabftw"
|
||||||
|
|||||||
Reference in New Issue
Block a user