diff --git a/README.md b/README.md index ddd7d8e..93a0c43 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,6 @@ A collection of delicious docker recipes. - [x] frp :cn: - [x] h2o - [x] httpbin :+1: -- [x] mariadb -- [x] mariadb-arm - [x] monit - [x] moodle :beetle: - [x] mosquitto @@ -364,6 +362,7 @@ A collection of delicious docker recipes. - [x] jazzdd/phpvirtualbox - [x] sonatype/nexus3 - [x] jupyter/notebook +- [x] mariadb - [x] matomo - [x] metabase/metabase - [x] metasploitframework/metasploit-framework :skull: @@ -431,6 +430,7 @@ A collection of delicious docker recipes. - [x] centurylink/watchtower - [x] wekanteam/wekan - [x] requarks/wiki +- [x] wordpress - [x] yourls - [x] ghcr.io/linuxserver/wireguard - [x] apache/zeppelin diff --git a/mariadb/docker-compose.yml b/mariadb/docker-compose.yml index 72ce74a..e888025 100644 --- a/mariadb/docker-compose.yml +++ b/mariadb/docker-compose.yml @@ -1,8 +1,14 @@ -mariadb: - image: vimagick/mariadb - ports: - - "3306:3306" - environment: - - MYSQL_ROOT_PASSWORD=root - - MYSQL_DATABASE=wordpress - restart: always +version: "3.8" +services: + mariadb: + image: mariadb:10 + ports: + - "3306:3306" + volumes: + - ./data:/var/lib/mysql + environment: + - MARIADB_ROOT_PASSWORD=root + - MARIADB_DATABASE=wordpress + - MARIADB_USER=wordpress + - MARIADB_PASSWORD=wordpress + restart: unless-stopped diff --git a/wordpress/README.md b/wordpress/README.md new file mode 100644 index 0000000..2c20532 --- /dev/null +++ b/wordpress/README.md @@ -0,0 +1,6 @@ +wordpress +========= + +[WordPress][1] is open source software you can use to create a beautiful website, blog, or app. + +[1]: https://wordpress.org/ diff --git a/wordpress/docker-compose.yml b/wordpress/docker-compose.yml new file mode 100644 index 0000000..db070b2 --- /dev/null +++ b/wordpress/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3.8' + +services: + + wordpress: + image: wordpress:apache + ports: + - 8080:8080 + volumes: + - ./data/wordpress:/var/www/html + environment: + - WORDPRESS_DB_HOST=mysql + - WORDPRESS_DB_USER=wordpress + - WORDPRESS_DB_PASSWORD=wordpress + - WORDPRESS_DB_NAME=wordpress + depends_on: + - mysql + restart: unless-stopped + + mysql: + image: mysql:8 + volumes: + - ./data/mysql:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=wordpress + - MYSQL_USER=wordpress + - MYSQL_PASSWORD=wordpress + restart: unless-stopped