Skip to content

Instantly share code, notes, and snippets.

@WebInspectInc
Created June 5, 2018 01:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebInspectInc/1f8543af0937214ea894448cb3dc8a10 to your computer and use it in GitHub Desktop.
Save WebInspectInc/1f8543af0937214ea894448cb3dc8a10 to your computer and use it in GitHub Desktop.
A basic Docker Compose file for WordPress
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