mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
create wordpress
This commit is contained in:
parent
2d9879ef95
commit
2419504468
1 changed files with 26 additions and 0 deletions
26
wordpress/compose.yml
Normal file
26
wordpress/compose.yml
Normal 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:
|
Loading…
Add table
Reference in a new issue