baby steps on mariadb configuration
This commit is contained in:
@@ -10,8 +10,8 @@ version: "3.8"
|
||||
services:
|
||||
|
||||
# ---------------------------------
|
||||
|
||||
test:
|
||||
|
||||
build:
|
||||
context: ./requirements/test
|
||||
dockerfile: Dockerfile
|
||||
@@ -19,8 +19,8 @@ services:
|
||||
container_name: mytest
|
||||
|
||||
# ---------------------------------
|
||||
|
||||
nginx:
|
||||
|
||||
# restart: on-failure
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -31,5 +31,14 @@ services:
|
||||
image: nginx
|
||||
container_name: mynginx
|
||||
|
||||
# ---------------------------------
|
||||
mariadb:
|
||||
# restart: on-failure
|
||||
build:
|
||||
context: ./requirements/mariadb
|
||||
dockerfile: Dockerfile
|
||||
image: mariadb
|
||||
container_name: mymariadb
|
||||
|
||||
# ---------------------------------
|
||||
|
||||
|
||||
@@ -2,3 +2,6 @@ FROM debian:buster
|
||||
|
||||
RUN apt update && apt install -y mariadb-client mariadb-server
|
||||
|
||||
RUN mariadb --execute="create database db_hugo_test; create user 'u_hugo_test'@'localhost' identified by 'hello'; grant all privileges on *.* to 'u_hugo_test'@'localhost' with grant option;"
|
||||
|
||||
CMD [ "mysqld" ]
|
||||
|
||||
Reference in New Issue
Block a user