From 7138bae1dc9d650fdda69c98652123ca71965c50 Mon Sep 17 00:00:00 2001 From: michivonah Date: Fri, 3 May 2024 21:17:46 +0200 Subject: [PATCH] add docker-compose for ghost cms --- ghost/docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ghost/docker-compose.yml diff --git a/ghost/docker-compose.yml b/ghost/docker-compose.yml new file mode 100644 index 0000000..4e5df77 --- /dev/null +++ b/ghost/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.1' + +services: + ghost: + image: ghost:5-alpine + restart: unless-stopped + ports: + - 2368:2368 + environment: + database__client: mysql + database__connection__host: db + database__connection__user: root + database__connection__password: ghost + database__connection__database: ghost + url: https://example.com + volumes: + - ./data:/var/lib/ghost/content + depends_on: + - db + + db: + image: mysql:8.0 + restart: unless-stopped + environment: + MYSQL_ROOT_PASSWORD: ghost + volumes: + - ./db:/var/lib/mysql +