From 568244dfe0822e8b17a668bafc61b5df0129e2bd Mon Sep 17 00:00:00 2001 From: Carl Emil Lidbom Date: Thu, 25 Jan 2024 17:38:47 +0100 Subject: [PATCH] Dockercompose with KeyCloak, Drupal, and MySql. Next step is to build a custom image for drupal Signed-off-by: Carl Emil Lidbom --- .env-drupal | 5 +++++ docker-compose.yml | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .env-drupal diff --git a/.env-drupal b/.env-drupal new file mode 100644 index 0000000..32ec4ba --- /dev/null +++ b/.env-drupal @@ -0,0 +1,5 @@ +APACHE_RUN_DIR=/var/run/apache2$SUFFIX +APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid +APACHE_RUN_USER=www-data +APACHE_RUN_GROUP=www-data +APACHE_LOG_DIR=/var/log/apache2$SUFFIX diff --git a/docker-compose.yml b/docker-compose.yml index cd6e975..532e427 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,10 +7,9 @@ services: - "53531:8080" environment: KEYCLOAK_ADMIN: "admin" - KEYCLOAK_ADMIN_PASSWORD: "admin" + KEYCLOAK_ADMINPASSWORD: "admin" command: - start-dev - drupal: container_name: digitharium_drupal image: drupal @@ -20,11 +19,13 @@ services: DB_HOST: "drupal_mysql" DB_USER: "user" DB_PASS: "password" + # env_file: + # - .env-drupal + volumes: + - ./config:/var/config depends_on: - drupal_mysql - - # DBs - +#DBs drupal_mysql: container_name: digitharium_drupal_mysql image: container-registry.oracle.com/mysql/community-server @@ -38,4 +39,4 @@ services: ports: - "3306:3306" volumes: - database: + database: \ No newline at end of file