diff --git a/.env b/.env index 69907e11..eafb2f2e 100644 --- a/.env +++ b/.env @@ -23,7 +23,7 @@ APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629 # Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url # For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" # Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls -DATABASE_URL=mysql://root@127.0.0.1/monofony_%kernel.environment% +DATABASE_URL=mysql://root:mysql@127.0.0.1/monofony_%kernel.environment% ###< doctrine/doctrine-bundle ### ###> nelmio/cors-bundle ### CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$ diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 00000000..c28d157d --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,6 @@ +version: '3.9' + +services: + mysql: + ports: + - '3306:3306' diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..8d1e760b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.9' + +services: + mysql: + image: mysql:5.7 + platform: linux/amd64 + environment: + MYSQL_ROOT_PASSWORD: mysql