add: mariadb
This commit is contained in:
parent
71dc294248
commit
ed3195f536
10
srcs/mariadb/Dockerfile
Normal file
10
srcs/mariadb/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM alpine:3.17
|
||||||
|
|
||||||
|
RUN apk update
|
||||||
|
|
||||||
|
RUN apk add mariadb
|
||||||
|
RUN mariadb-install-db
|
||||||
|
RUN mkdir /run/mysqld
|
||||||
|
COPY init.sql /etc
|
||||||
|
|
||||||
|
ENTRYPOINT ["mariadbd", "--no-defaults", "--user=root", "--datadir=/data", "--init-file=/etc/init.sql"]
|
2
srcs/mariadb/init.sql
Normal file
2
srcs/mariadb/init.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE DATABASE wordpress;
|
||||||
|
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'%' IDENTIFIED BY 'wordpress';
|
Loading…
Reference in New Issue
Block a user