Last active
October 15, 2018 00:19
-
-
Save p3drojimenez/48f4364155c615adc4593da0e02b5751 to your computer and use it in GitHub Desktop.
wordpress docker-compose
This file contains hidden or 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.7' | |
services: | |
mysql: | |
image: mariadb:10 | |
network_mode: bridge | |
container_name: wordpress-test-db-01 | |
restart: on-failure | |
environment: | |
MYSQL_ROOT_PASSWORD: password # Password MYSQL Root | |
volumes: | |
- .docker/mysql:/var/lib/mysql # Folder con los ficheros mysql | |
web: | |
image: wordpress | |
network_mode: bridge | |
container_name: wordpress-test-01 # Nombre del contenedor ( debe ser único ) | |
restart: on-failure | |
volumes: | |
- ./wp-content/plugins:/var/www/html/wp-content/plugins/ | |
- ./wp-content/themes:/var/www/html/wp-content/themes/ | |
environment: | |
WORDPRESS_DB_NAME: wordpress | |
ports: | |
- 8002:80 | |
depends_on: | |
- mysql | |
links: | |
- mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment