Created
June 5, 2018 01:50
-
-
Save WebInspectInc/1f8543af0937214ea894448cb3dc8a10 to your computer and use it in GitHub Desktop.
A basic Docker Compose file for WordPress
This file contains 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: | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- ./db:/docker-entrypoint-initdb.d | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
wordpress: | |
image: wordpress | |
depends_on: | |
- mysql | |
links: | |
- mysql:mysql | |
ports: | |
- 8080:80 | |
restart: always | |
environment: | |
WORDPRESS_DB_PASSWORD: wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment