diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 3edbc2c..2df858c 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