Skip to content

Instantly share code, notes, and snippets.

@cagdas1
Created July 26, 2020 14:09
Show Gist options
  • Save cagdas1/488c5f98b910a7deed77125f19b07dca to your computer and use it in GitHub Desktop.
Save cagdas1/488c5f98b910a7deed77125f19b07dca to your computer and use it in GitHub Desktop.
version: '3.8'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
wordpress:
image: 'docker.io/bitnami/wordpress:5-debian-10'
ports:
- '8080:8080'
- '8443:8443'
volumes:
- 'wordpress_data:/bitnami/wordpress'
depends_on:
- mariadb
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment