services: ghost: image: ghost:4-alpine container_name: ghost restart: unless-stopped expose: - 2368 networks: - web - default environment: database__client: mysql database__connection__host: db database__connection__user: root database__connection__password: ${GHOST_DB_PASSWORD} database__connection__database: ghost url: https://ghost.${DOMAIN} volumes: - ./content:/var/lib/ghost/content labels: - "traefik.enable=true" - "traefik.http.routers.ghost.entrypoints=https" - "traefik.http.routers.ghost.rule=Host(`ghost.${DOMAIN}`)" - "traefik.http.routers.ghost.tls.certresolver=http" db: image: mysql:5.7 container_name: ghost-db restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: ${GHOST_DB_PASSWORD} volumes: - ./mysql:/var/lib/mysql networks: web: external: true