services: # MySQL 8 Embedded Version # Container Name will be setup as variable is set ! ghost-website: container_name: ghost-website-${DOMAIN}-${DIFFUSION} image: ghost:latest restart: always ports: - ${DIFFUSION}:2368 volumes: - ${DATA_DIR}/${DOMAIN}/ghost-website:/var/lib/ghost/content environment: database__client: mysql database__connection__host: ${DBIP} database__connection__port: ${DBPORT} database__connection__user: root database__connection__password: ${DBPASS} database__connection__database: ${DBNAME} url: https://${DOMAIN} ghost-database: # MySQL 8 Locked Version (stable/compatible) image: mysql:8.3.0 command: --default-authentication-plugin=mysql_native_password restart: always ports: - ${DBIP}:${DBPORT}:3306 volumes: - ${DATA_DIR}/${DOMAIN}/ghost-database:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: ${DBPASS} MYSQL_DATABASE: ${DBNAME} MYSQL_ROOT_HOST: "%"