Skip to content

Instantly share code, notes, and snippets.

@p3drojimenez
Last active October 15, 2018 00:19
Show Gist options
  • Save p3drojimenez/48f4364155c615adc4593da0e02b5751 to your computer and use it in GitHub Desktop.
Save p3drojimenez/48f4364155c615adc4593da0e02b5751 to your computer and use it in GitHub Desktop.
wordpress docker-compose
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