1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/wordpress/docker-compose.yml

30 lines
619 B
YAML
Raw Normal View History

2021-10-29 05:33:40 +02:00
version: '3.8'
services:
wordpress:
image: wordpress:apache
ports:
2021-10-29 05:59:36 +02:00
- "8080:80"
2021-10-29 05:33:40 +02:00
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