Created
June 24, 2020 17:54
-
-
Save mauriballes/0003f83eaa01ad81368b6f00d65706fe to your computer and use it in GitHub Desktop.
Wordpress Docker Fast
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: | |
db: | |
image: mariadb:latest | |
volumes: | |
- data:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret | |
- MYSQL_DATABASE=wordpress | |
- MYSQL_USER=manager | |
- MYSQL_PASSWORD=secret | |
web: | |
image: wordpress:latest | |
depends_on: | |
- db | |
volumes: | |
- ./target:/var/www/html | |
environment: | |
- WORDPRESS_DB_USER=manager | |
- WORDPRESS_DB_PASSWORD=secret | |
- WORDPRESS_DB_HOST=db | |
ports: | |
- 8080:80 | |
volumes: | |
data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment