provison uid added

This commit is contained in:
CHIEFSOFT\ameye
2025-08-07 16:52:08 -04:00
parent f991ec56a9
commit 48665f7380
6 changed files with 8 additions and 3 deletions
@@ -9,7 +9,8 @@ services:
volumes:
- ./writable:/var/www/html/writable:Z
- ./apache_log:/var/log/apache2:Z
# environment:
environment:
- PROVISION_UID=PROVISION_UID
# - APACHE_RUN_USER=1000
# - APACHE_RUN_GROUP=1000
networks:
@@ -9,7 +9,8 @@ services:
volumes:
- ./writable:/var/www/html/writable:Z
- ./apache_log:/var/log/apache2:Z
# environment:
environment:
- PROVISION_UID=PROVISION_UID
# - APACHE_RUN_USER=1000
# - APACHE_RUN_GROUP=1000
networks:
@@ -13,6 +13,7 @@ services:
WORDPRESS_DB_USER: CNT_DB_NAME
WORDPRESS_DB_PASSWORD: CNT_DB_PASS
WORDPRESS_DB_NAME: CNT_DB_NAME
PROVISION_UID: PROVISION_UID
networks:
- wpsite
@@ -13,6 +13,7 @@ services:
WORDPRESS_DB_USER: CNT_DB_NAME
WORDPRESS_DB_PASSWORD: CNT_DB_PASS
WORDPRESS_DB_NAME: CNT_DB_NAME
PROVISION_UID: PROVISION_UID
networks:
- wpsite
@@ -13,6 +13,7 @@ services:
WORDPRESS_DB_USER: CNT_DB_NAME
WORDPRESS_DB_PASSWORD: CNT_DB_PASS
WORDPRESS_DB_NAME: CNT_DB_NAME
PROVISION_UID: PROVISION_UID
networks:
- wpsite
+1 -1
View File
@@ -52,7 +52,7 @@ class Home extends BaseController
$composer_template_contents = str_replace("ALLOCATED_PORT", $allocatedPort, $composer_template_contents);
$composer_template_contents = str_replace("CNT_DB_NAME", $ContainerName, $composer_template_contents);
$composer_template_contents = str_replace("CNT_DB_PASS", $provisionUID, $composer_template_contents);
$composer_template_contents = str_replace("PROVISION_UID", $provisionUID, $composer_template_contents);
//Save to the specific path
$destination_composer_path = $ansible_folder."/parts/".$provisionUID."/docker-compose.yml";
$composerFile = fopen( $destination_composer_path, "w") or die("Unable to open file!");