database: create basic mysql db
This commit is contained in:
parent
36a82a3789
commit
fb26267244
1
database/.gitignore
vendored
Normal file
1
database/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.env
|
||||||
14
database/docker-compose.yaml
Normal file
14
database/docker-compose.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mysql:9.4.0
|
||||||
|
container_name: nyi-db
|
||||||
|
ports:
|
||||||
|
- "${DB_SERVER}:${DB_PORT}:3306"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${ROOT_PWD}
|
||||||
|
- MYSQL_DATABASE=${DB_NAME}
|
||||||
|
volumes:
|
||||||
|
- nyi_db_volume:/var/lib/mysql
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nyi_db_volume:
|
||||||
Loading…
x
Reference in New Issue
Block a user