From cbb043a3a0ec80ac4801e9e656bc3039e6d4731c Mon Sep 17 00:00:00 2001 From: ArchBlood <35392110+ArchBlood@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:35:53 -0500 Subject: [PATCH] Update docker-compose.test.yml Signed-off-by: ArchBlood <35392110+ArchBlood@users.noreply.github.com> --- docker-compose.test.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 3edbc2c7..2df858c0 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -2,7 +2,12 @@ services: humhub: build: . ports: - - "8080:8080" + - "80:80" + - "443:443" + volumes: + - .:/app + - humhub_config:/app/protected/config + - humhub_runtime:/app/protected/runtime environment: - PHP_MEMORY_LIMIT=512M - PHP_MAX_EXECUTION_TIME=300 @@ -10,11 +15,21 @@ services: - HUMHUB_DB_NAME=humhub_test - HUMHUB_DB_USER=humhubuser - HUMHUB_DB_PASSWORD=humhubpassword + # FrankenPHP-specific environment variables + - SERVER_NAME=:80 + - PHP_INI_MEMORY_LIMIT=512M + - PHP_INI_MAX_EXECUTION_TIME=300 depends_on: db: condition: service_healthy networks: - humhub_test_network + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:80"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 30s db: image: mysql:8 @@ -30,9 +45,19 @@ services: retries: 5 start_period: 30s command: --default-authentication-plugin=mysql_native_password + volumes: + - humhub_db_data:/var/lib/mysql networks: - humhub_test_network networks: humhub_test_network: driver: bridge + +volumes: + humhub_db_data: + driver: local + humhub_config: + driver: local + humhub_runtime: + driver: local