1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00

create wordpress

This commit is contained in:
Nebel 2022-05-17 14:38:07 +09:00
parent 2d9879ef95
commit 2419504468

26
wordpress/compose.yml Normal file
View file

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