# docker-compose.yml # Docker Hub: https://hub.docker.com/_/ghost # The WebUI can be found at http://: # Ghost is very particular about it's variables, hence the odd format networks: : external: true services: ghost: container_name: ghost depends_on: - ghost-db environment: database__client: mysql database__connection__host: ghost-db database__connection__user: root database__connection__database: ghost database__connection__password: url: image: ghost: networks: - ports: - "2368:2368" restart: unless-stopped volumes: - ./ghost:/var/lib/ghost/content ghost-db: container_name: ghost-db environment: - MYSQL_ROOT_PASSWORD= image: mysql: networks: - restart: unless-stopped volumes: - ./ghost-db:/var/lib/mysql