Last active
April 6, 2018 11:13
-
-
Save GitHub30/e3c9c51b6bbd22c6de155eb835b7fd47 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
version: "2" | |
services: | |
wordpress: | |
image: wordpress:latest | |
ports: | |
- "8080:80" | |
depends_on: | |
- db | |
environment: | |
WORDPRESS_DB_HOST: "db:3306" | |
env_file: .env | |
db: | |
image: mysql:latest | |
env_file: .env | |
volumes: | |
- db-data:/var/lib/mysql | |
volumes: | |
db-data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment