From 74998ed0319c4f4fbbe8ef2a3622eec7c6a15a9c Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sat, 5 Mar 2022 20:29:14 +0000 Subject: [PATCH] Add ghost compose --- ghost/docker-compose.yml | 87 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 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..3c3d21d --- /dev/null +++ b/ghost/docker-compose.yml @@ -0,0 +1,87 @@ +version: '3.9' + +services: + ghost: + image: ghost + container_name: ghost + restart: unless-stopped + volumes: + - '/home/nick/configs/ghost/ghost:/var/lib/ghost/content' + environment: + url: ${URL} + networks: + - proxy + - ghost + user: '1000:1000' + + commento: + build: https://git.karaolidis.com/Nikas36/commento.git + image: commento:custom + container_name: commento + restart: unless-stopped + environment: + COMMENTO_ORIGIN: 'https://stats.karaolidis.com/comments/' + COMMENTO_PORT: 8080 + COMMENTO_POSTGRES: postgres://postgres:postgres@commento_db:5432/commento?sslmode=disable + COMMENTO_SMTP_HOST: '${SMTP_HOST}' + COMMENTO_SMTP_PORT: '${SMTP_PORT}' + COMMENTO_SMTP_USERNAME: '${SMTP_USER}' + COMMENTO_SMTP_PASSWORD: '${SMTP_PASSWORD}' + COMMENTO_SMTP_FROM_ADDRESS: '${SMTP_FROM}' + COMMENTO_FORBID_NEW_OWNERS: 'true' + networks: + - proxy + - ghost + depends_on: + - commento_db + + commento_db: + image: postgres:13.4 + container_name: commento_db + restart: unless-stopped + environment: + POSTGRES_DB: commento + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + volumes: + - '/home/nick/configs/ghost/commento:/var/lib/postgresql/data' + networks: + - ghost + user: '1000:1000' + + umami: + build: https://git.karaolidis.com/Nikas36/umami.git + image: umami:custom + container_name: umami + restart: unless-stopped + environment: + DATABASE_URL: postgresql://umami:umami@umami_db:5432/umami + DATABASE_TYPE: postgresql + HASH_SALT: ${SALT} + depends_on: + - umami_db + networks: + - proxy + - ghost + + umami_db: + image: postgres:13.4 + container_name: umami_db + restart: unless-stopped + environment: + POSTGRES_DB: umami + POSTGRES_USER: umami + POSTGRES_PASSWORD: umami + volumes: + - '/home/nick/configs/ghost/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro' + - '/home/nick/configs/ghost/umami/data:/var/lib/postgresql/data' + networks: + - ghost + user: '1000:1000' + +networks: + proxy: + external: true + name: proxy + ghost: + name: ghost