diff --git a/wordpress/compose.yml b/wordpress/compose.yml new file mode 100644 index 0000000..3b6093a --- /dev/null +++ b/wordpress/compose.yml @@ -0,0 +1,26 @@ +services: + db: + image: mariadb:10.7 + volumes: + - mariadb_data_v10_7:/var/lib/mysql + environment: + MARIADB_ROOT_PASSWORD: somewordpress + MARIADB_DATABASE: wordpress + MARIADB_USER: wordpress + MARIADB_PASSWORD: wordpress + wordpress: + depends_on: + - db + image: wordpress:latest + volumes: + - wordpress_data:/var/www/html + ports: + - "8000:80" + environment: + WORDPRESS_DB_HOST: db + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: wordpress + WORDPRESS_DB_NAME: wordpress +volumes: + mariadb_data_v10_7: + wordpress_data: