baby steps on mariadb configuration

This commit is contained in:
hugo gogo
2022-09-05 11:41:06 +02:00
parent 97e92321f1
commit c2ecbf5e11
3 changed files with 52 additions and 3 deletions

View File

@@ -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
# ---------------------------------

View File

@@ -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" ]