diff --git a/docker-compose.yml b/docker-compose.yml index e9df8ce..60d0c94 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,24 @@ version: "3" services: ghost: - image: ghost:4-alpine + image: ghost:5-alpine ports: - 2368:2368 + environment: + # see https://ghost.org/docs/config/#configuration-options + database__client: mysql + database__connection__host: db + database__connection__user: root + database__connection__password: password + database__connection__database: ghost + url: http://localhost:2368 restart: unless-stopped volumes: - ghost:/var/lib/ghost/content + db: + image: mysql:8.0 + restart: always + environment: + MYSQL_ROOT_PASSWORD: password volumes: ghost: