Skip to content

Instantly share code, notes, and snippets.

@sebgoa
Created May 17, 2017 13:01
Show Gist options
  • Save sebgoa/a96bee176c5ea48607e5dae664ec4723 to your computer and use it in GitHub Desktop.
Save sebgoa/a96bee176c5ea48607e5dae664ec4723 to your computer and use it in GitHub Desktop.
wordpress docker-compose
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
wordpress:
image: 'bitnami/wordpress:latest'
ports:
- '80:80'
- '443:443'
volumes:
- 'wordpress_data:/bitnami/wordpress'
- 'apache_data:/bitnami/apache'
- 'php_data:/bitnami/php'
depends_on:
- mariadb
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
labels:
kompose.service.type: nodeport
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local
apache_data:
driver: local
php_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment