addet mysql config
This commit is contained in:
parent
2cf4e2680d
commit
31cec21f7c
3 changed files with 16 additions and 2 deletions
4
mysql/.env
Normal file
4
mysql/.env
Normal file
|
@ -0,0 +1,4 @@
|
|||
DB_ROOT_PW=supersecurepassword
|
||||
DB_USER=db_user
|
||||
DB_PW=securepassword
|
||||
DB_NAME=db_name
|
11
mysql/docker-compose.yml
Normal file
11
mysql/docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
services:
|
||||
mysql_db:
|
||||
image: mysql:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PW}
|
||||
- MYSQL_USER=${DB_USER}
|
||||
- MYSQL_PASSWORD=${DB_PW}
|
||||
- MYSQL_DATABASE=${DB_NAME}
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
Loading…
Add table
Add a link
Reference in a new issue