From 25350a26ec42b0ffa19e2e48c76340ec73d0cdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Fri, 20 Oct 2023 09:15:23 +0200 Subject: [PATCH] Add a minimal docker --- .env | 2 +- docker-compose.override.yml | 6 ++++++ docker-compose.yml | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 docker-compose.override.yml create mode 100644 docker-compose.yml 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