bitnami-containers/bitnami/wordpress-nginx/5/rhel-7/docker-compose.yml

37 lines
1.3 KiB
YAML

version: '2'
services:
mariadb:
image: bitnami/mariadb:latest
volumes:
- 'mariadb_data:/bitnami'
environment:
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
wordpress:
# A Red Hat Customer Portal login is required to access this image. If you do not have one already, you can obtain one at https://www.redhat.com/wapps/ugc/register.html
# Pull action should be successful from any RHEL Host system running the Docker service and executing the following command: docker login registry.connect.redhat.com
# + info: https://access.redhat.com/containers/?tab=images&platform=docker#/registry.connect.redhat.com/bitnami/wordpress-nginx-php7
image: registry.connect.redhat.com/bitnami/wordpress-nginx-php7
ports:
- '80:8080'
- '443:8443'
volumes:
- 'wordpress_data:/bitnami'
- './wordpress-vhosts.conf:/bitnami/nginx/conf/vhosts/wordpress-vhosts.conf'
depends_on:
- mariadb
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- WORDPRESS_HTTP_PORT=8080
- WORDPRESS_HTTPS_PORT=8443
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local