Skip to content

Instantly share code, notes, and snippets.

@michaelchiche
Created May 15, 2019 20:13
Show Gist options
  • Select an option

  • Save michaelchiche/8eb8ecad6cc6267e1020b5ce199af149 to your computer and use it in GitHub Desktop.

Select an option

Save michaelchiche/8eb8ecad6cc6267e1020b5ce199af149 to your computer and use it in GitHub Desktop.
docker-compose.wordpress.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment