Browse Source

Database config details

imwald
Nuša Pukšič 9 months ago
parent
commit
69e2d56b2e
  1. 6
      .env.dist
  2. 2
      README.md
  3. 4
      compose.yaml

6
.env.dist

@ -21,11 +21,13 @@ APP_SECRET=9e287f1ad737386dde46d51e80487236
###> docker ### ###> docker ###
SERVER_NAME=localhost SERVER_NAME=localhost
MYSQL_DATABASE=unfold_db MYSQL_DATABASE=unfold_db
MYSQL_VERSION=8.0
MYSQL_CHARSET=utf8mb4
MYSQL_USER=unfold_user MYSQL_USER=unfold_user
MYSQL_PASSWORD=password MYSQL_PASSWORD=password
# Root password is only used for the bundled database service, see compose.yaml
# skip it, if you use your own
MYSQL_ROOT_PASSWORD=root_password MYSQL_ROOT_PASSWORD=root_password
MYSQL_VERSION=8.0
MYSQL_CHARSET=utf8mb4
###< docker ### ###< docker ###
###> doctrine/doctrine-bundle ### ###> doctrine/doctrine-bundle ###

2
README.md

@ -15,3 +15,5 @@ cd unfold
Copy the example file `.env.dist` and replace placeholders with your actual configuration. Copy the example file `.env.dist` and replace placeholders with your actual configuration.
If you have your own MySQL database, comment out the database service in `compose.yaml` and skip root password in `.env`.
There are additional comments to that effect in the files.

4
compose.yaml

@ -28,6 +28,10 @@ services:
###> doctrine/doctrine-bundle ### ###> doctrine/doctrine-bundle ###
# ---
# The database service below is optional. If you use your own database (container or external),
# you can comment out or remove this block. Make sure to update the DATABASE_URL in the php service accordingly.
# ---
database: database:
image: mysql:${MYSQL_VERSION:-8.0} image: mysql:${MYSQL_VERSION:-8.0}
environment: environment:

Loading…
Cancel
Save