Skip to content

Instantly share code, notes, and snippets.

@mikaelz
Forked from kylechase/docker-compose.yml
Created February 14, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelz/b93796d9edd085cb595c737a86c8929a to your computer and use it in GitHub Desktop.
Save mikaelz/b93796d9edd085cb595c737a86c8929a to your computer and use it in GitHub Desktop.
version: "3.2"
services:
wordpress:
image: wordpress
volumes:
- type: volume
source: www-data
target: /var/www/html
expose:
- 80
restart: unless-stopped
mysql:
image: mysql:5.7
volumes:
- type: volume
source: db-data
target: /var/lib/mysql
networks:
- wordpress
restart: unless-stopped
volumes:
www-data:
db-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment