Created
July 18, 2017 12:03
-
-
Save isalgueiro/ee2df82168f4f065d9f7077852e89292 to your computer and use it in GitHub Desktop.
Docker compose for wordpress
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.1' | |
services: | |
mywebdb: | |
image: mysql:5.7 | |
volumes: | |
- mywebdb_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: supersecretpassword | |
myweb: | |
depends_on: | |
- mywebdb | |
image: wordpress:4.8.0-php7.0-apache | |
volumes: | |
- myweb_data:/var/www/html | |
ports: | |
- 80:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: supersecretpassword | |
WORDPRESS_DB_HOST: mywebdb | |
volumes: | |
myweb_data: | |
mywebdb_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To backup mysql database
To execute queries in MySQL
To backup wordpress web files