Created
November 9, 2018 15:58
-
-
Save kevinn/92b9c87bb88c3ee8540849b074c94646 to your computer and use it in GitHub Desktop.
wordpress using docker
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' | |
services: | |
wordpress: | |
image: wordpress:latest | |
restart: always | |
links: | |
- mysql | |
ports: | |
- 8080:80 | |
volumes: | |
- ~/dev/project-dir/wp/:/var/www/html | |
environment: | |
WORDPRESS_DB_NAME: project_db | |
WORDPRESS_DB_PASSWORD: localpass | |
WORDPRESS_ADDITIONAL_CONFIG: define('FS_METHOD', 'direct'); | |
mysql: | |
image: mysql:5.7 | |
restart: always | |
command: --disable-partition-engine-check | |
environment: | |
MYSQL_ROOT_PASSWORD: localpass | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
container_name: phpmyadmin | |
links: | |
- mysql | |
environment: | |
PMA_HOST: mysql | |
PMA_PORT: 3306 | |
restart: always | |
ports: | |
- 8181:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment