Ghost

---

services:
  ghost:
    image: ghost:latest
    container_name: blog-erin
    restart: unless-stopped
    depends_on:
      - db-blog
    environment:
      url: ${FQDN}
      database__client: mysql
      database__connection__host: db-blog
      database__connection__user: ghost
      database__connection__password: ${PASS-DB-GHOST}
      database__connection__database: ghost
    volumes:
        - ${DATA-GHOST}:/var/lib/ghost/content
        #- ${DATA-GHOST-CONFIG}.production.json:/var/lib/ghost/config.production.json
        - ${DATA-GHOST-CONFIG}.development.json:/var/lib/ghost/config.production.json
    ports:
      - 2368:2368
    networks:
      - swag
      - db-mysql-net

  db-blog:
    image: mysql:5.7
    container_name: db-blog
    restart: unless-stopped
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: ${PASS-DB-GHOST}
    volumes:
      - ${DATA-DB-BLOG}:/var/lib/mysql
    networks:
      - db-mysql-net