docker-compose-homeserver/wordpress/docker-compose.yml

32 lines
570 B
YAML

version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 84:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: changeme
WORDPRESS_DB_NAME: wordpress
volumes:
- ./wordpress:/var/www/html
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: changeme
MYSQL_ROOT_PASSWORD: changeme
volumes:
- ./db:/var/lib/mysql
volumes:
wordpress:
db: