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

View File

@@ -0,0 +1,26 @@
services:
php:
environment:
XDEBUG_MODE: off
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mailer
###> doctrine/doctrine-bundle ###
database:
ports:
- "3306"
###< doctrine/doctrine-bundle ###
###> symfony/mailer ###
mailer:
image: axllent/mailpit
ports:
- "1025:1025"
- "8025:8025"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
###< symfony/mailer ###

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 ###