add mariadb to docker-compose file
This commit is contained in:
1 parent
aa87962b24
commit
d5d18014a7
1 file changed
+9
@@ -15,3 +15,12 @@ services:
|
||||
- ./database.db:/app/database.db
|
||||
ports:
|
||||
- 127.0.0.1:80:80
|
||||
db:
|
||||
image: mariadb:10.7.8-focal
|
||||
restart: always
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD=notasecuresecretkeyonlyuseforlocaldevelopment
|
||||
volumes:
|
||||
- ./database_mysql:/var/lib/mysql
|
||||
ports:
|
||||
- 127.0.0.1:3306:3306
|
||||
Reference in new issue
Block a user