bitnami-containers/bitnami/ghost/docker-compose.yml

35 lines
861 B
YAML

# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '2'
services:
mysql:
image: docker.io/bitnami/mysql:8.0
volumes:
- 'mysql_data:/bitnami/mysql'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MYSQL_USER=bn_ghost
- MYSQL_DATABASE=bitnami_ghost
ghost:
image: docker.io/bitnami/ghost:5
ports:
- '80:2368'
volumes:
- 'ghost_data:/bitnami/ghost'
depends_on:
- mysql
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- GHOST_DATABASE_HOST=mysql
- GHOST_DATABASE_PORT_NUMBER=3306
- GHOST_DATABASE_USER=bn_ghost
- GHOST_DATABASE_NAME=bitnami_ghost
volumes:
mysql_data:
driver: local
ghost_data:
driver: local