This commit is contained in:
2025-09-06 16:50:16 +02:00
commit 534175efb3
62 changed files with 14264 additions and 0 deletions

45
docker/compose.yaml Normal file
View File

@@ -0,0 +1,45 @@
services:
php:
build:
context: ..
dockerfile: php/Dockerfile
volumes:
- ../:/var/www/html:delegated
environment:
APP_ENV: dev
depends_on:
- database
nginx:
image: nginx:1.27-alpine
ports:
- "8080:80"
volumes:
- ../:/var/www/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
###> doctrine/doctrine-bundle ###
database:
image: mysql:8.0
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
MYSQL_USER: ${MYSQL_USER:-app}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
command: ["--default-authentication-plugin=mysql_native_password", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 5s
retries: 10
start_period: 60s
volumes:
- database_data:/var/lib/mysql:rw
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###