Skip to content

Commit

Permalink
Update docker-compose.test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <35392110+ArchBlood@users.noreply.github.com>
  • Loading branch information
ArchBlood authored Nov 12, 2024
1 parent 869668c commit cbb043a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,34 @@ 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
- HUMHUB_DB_HOST=db
- 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
Expand All @@ -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

0 comments on commit cbb043a

Please sign in to comment.