Skip to content

Commit

Permalink
Fixed: db datas references
Browse files Browse the repository at this point in the history
  • Loading branch information
BAD-WOLF committed Oct 5, 2023
1 parent 98db117 commit 4ffc419
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ APP_SECRET=915aa68d9139b44e91cf5839bea51b5a
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://@127.0.0.1:3306/test?charset=utf8mb4"
DATABASE_URL="mysql://matheu:password@127.0.0.1:3306/main?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="mysql://root:password@127.0.0.1:3306/main?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"
###< doctrine/doctrine-bundle ###

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

test.sql
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand Down
3 changes: 3 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ web:
expires: 1h
passthru: "/index.php"

relationships:
database: 'database:mysql'

workers:
messenger:
# PHP background workers usually don't require much CPU. See
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.7'
services:
database:
image: 'mariadb:latest'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/compose-file-v3/#ports for more information.
- '3306:3306'
32 changes: 0 additions & 32 deletions docker-compose.yml

This file was deleted.

0 comments on commit 4ffc419

Please sign in to comment.