# Ghost + MySQL # Требует: порт 2369, MySQL 8 services: ghost: image: ghost:latest restart: unless-stopped depends_on: mysql: condition: service_healthy ports: - "2369:2368" environment: database__client: mysql2 database__connection__host: mysql database__connection__user: ghost database__connection__password: ghost database__connection__database: ghost url: http://localhost:2369 volumes: - ghost_content:/var/lib/ghost/content mysql: image: mysql:8.0 restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: ghost MYSQL_USER: ghost MYSQL_PASSWORD: ghost volumes: - ghost_mysql:/var/lib/mysql healthcheck: test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"] interval: 3s timeout: 5s retries: 15 start_period: 30s volumes: ghost_content: ghost_mysql: