From ff70c41470641b91e26af251243d895b2bbca2bd Mon Sep 17 00:00:00 2001 From: Tomas Krejci Date: Wed, 19 Jul 2023 21:50:46 +0200 Subject: [PATCH] init --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9c42dc3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.1' + +services: + + ghost: + image: ghost:4-alpine + restart: always + ports: + - 8080:2368 + environment: + # see https://ghost.org/docs/config/#configuration-options + database__client: mysql + database__connection__host: db + database__connection__user: root + database__connection__password: SECRET + database__connection__database: ghost + # this url value is just an example, and is likely wrong for your environment! + url: https://tomaskrejci.com + # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired) + #NODE_ENV: development + + db: + image: mysql:8.0 + restart: always + environment: + MYSQL_ROOT_PASSWORD: SECRET