Created
June 23, 2017 23:43
-
-
Save vkmc/ad0d0e7d87ab0c26b335ca443350a59a to your computer and use it in GitHub Desktop.
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
--- | |
services: | |
db: | |
environment: | |
MYSQL_DATABASE: wordpressdb | |
MYSQL_PASSWORD: linuxchixar | |
MYSQL_ROOT_PASSWORD: linuxchixar | |
MYSQL_USER: linuxchixar | |
image: "mysql:5.7" | |
restart: always | |
volumes: | |
- "db_data:/var/lib/mysql" | |
wordpress: | |
depends_on: | |
- db | |
environment: | |
WORDPRESS_DB_HOST: "db:3306" | |
WORDPRESS_DB_PASSWORD: linuxchixar | |
image: "wordpress:latest" | |
ports: | |
- "8080:80" | |
restart: always | |
version: "2" | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment