Created
February 18, 2020 20:12
-
-
Save Soben/4092f16c0307569d9bf00051c411acea to your computer and use it in GitHub Desktop.
Simple Docker 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.1' | |
services: | |
wordpress: | |
image: wordpress | |
restart: always | |
ports: | |
- 8080:80 | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: sqluser | |
WORDPRESS_DB_PASSWORD: sqlpassword | |
WORDPRESS_DB_NAME: wordpress | |
volumes: | |
- "./www:/var/www/html" | |
db: | |
image: mysql:5.7 | |
restart: always | |
command: [--default-authentication-plugin=mysql_native_password] | |
environment: | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: sqluser | |
MYSQL_PASSWORD: sqlpassword | |
volumes: | |
- "./db:/var/lib/mysql" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment