Created
June 4, 2019 15:00
-
-
Save MervinPraison/9b4c0cf0dbee9b8a7b43757154e65169 to your computer and use it in GitHub Desktop.
Docker Compose WordPress MySQL
This file contains hidden or 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: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: somewordpress | |
| MYSQL_DATABASE: wordpress | |
| MYSQL_USER: wordpress | |
| MYSQL_PASSWORD: wordpress | |
| wordpress: | |
| depends_on: | |
| - db | |
| image: wordpress:5.1.1-php7.3-apache | |
| ports: | |
| - "8000:80" | |
| restart: always | |
| environment: | |
| WORDPRESS_DB_HOST: db:3306 | |
| WORDPRESS_DB_USER: wordpress | |
| WORDPRESS_DB_PASSWORD: wordpress | |
| working_dir: /var/www/html | |
| volumes: | |
| - ./wp-content:/var/www/html/wp-content | |
| - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
| volumes: | |
| db_data: |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://davidyeiser.com/tutorial/docker-wordpress-theme-setup