Created
November 5, 2019 11:35
-
-
Save statickidz/0f3fc1beedda9ecda17f7ec0993f6771 to your computer and use it in GitHub Desktop.
Quick Docker Compose for Wordpress testing (docker-compose up -d)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
mysql: | |
image: mysql:5.7.22 | |
volumes: | |
- ./.mysql:/var/lib/mysql/ | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
command: --innodb-use-native-aio=0 --explicit_defaults_for_timestamp --sql_mode="" | |
phpmyadmin: | |
depends_on: | |
- mysql | |
image: phpmyadmin/phpmyadmin | |
volumes: | |
- /sessions | |
environment: | |
PMA_ARBITRARY: 1 | |
PMA_HOST: mysql:3306 | |
PMA_USER: root | |
PMA_PASSWORD: root | |
restart: always | |
ports: | |
- 8080:80 | |
wordpress: | |
depends_on: | |
- mysql | |
image: wordpress:latest | |
volumes: | |
- ./:/var/www/html:cached | |
ports: | |
- 8000:80 | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: mysql:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment