Skip to content

Commit

Permalink
Merge pull request #509 from loic425/feature/minimal-docker
Browse files Browse the repository at this point in the history
Add a minimal Docker configuration
  • Loading branch information
loic425 authored Oct 20, 2023
2 parents 40fe1b2 + 25350a2 commit f540be6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]/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]+)?$
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3.9'

services:
mysql:
ports:
- '3306:3306'
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.9'

services:
mysql:
image: mysql:5.7
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: mysql

0 comments on commit f540be6

Please sign in to comment.