database volume

This commit is contained in:
Frank
2026-01-09 16:53:47 +01:00
parent 12e87edc4d
commit ea54c87426
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -6,6 +6,9 @@
/config/secrets/prod/prod.decrypt.private.php /config/secrets/prod/prod.decrypt.private.php
/public/bundles/ /public/bundles/
/var/ /var/
!/var/volumes/
/var/volumes/*
!/var/volumes/.gitignore
/vendor/ /vendor/
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###

View File

@@ -99,7 +99,7 @@ services:
start_period: 30s start_period: 30s
command: ["--default-authentication-plugin=mysql_native_password", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"] command: ["--default-authentication-plugin=mysql_native_password", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
volumes: volumes:
- database_data:/var/lib/mysql:rw - ../var/volumes/db:/var/lib/mysql:rw
- ./mysql/init:/docker-entrypoint-initdb.d:ro - ./mysql/init:/docker-entrypoint-initdb.d:ro
# Uncomment the two lines below if you need to access MySQL from your host (workbench, etc.) # Uncomment the two lines below if you need to access MySQL from your host (workbench, etc.)
ports: ports:
@@ -110,9 +110,7 @@ services:
restart: unless-stopped restart: unless-stopped
###< doctrine/doctrine-bundle ### ###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ### ###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ### ###< doctrine/doctrine-bundle ###
networks: networks: