Skip to content

Instantly share code, notes, and snippets.

@KarimMohamed20
Last active August 27, 2020 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KarimMohamed20/cb20d46999ddad412b4f9215d00faf69 to your computer and use it in GitHub Desktop.
Save KarimMohamed20/cb20d46999ddad412b4f9215d00faf69 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: dplyr
WORDPRESS_DB_PASSWORD: dplyr
WORDPRESS_DB_NAME: dplyr
volumes:
- ./wordpress:/var/www/html
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: dplyr
MYSQL_USER: dplyr
MYSQL_PASSWORD: dplyr
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
wordpress:
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment