From 75a4dc69f9f9912cc6efa7d45299dc6802355c8d Mon Sep 17 00:00:00 2001 From: Dylan Bolger Date: Sun, 28 Apr 2024 00:31:28 -0500 Subject: add compose files --- external/compose.yaml | 34 ++++++++++++++++++++++++++++++ external/freshrss/compose.yaml | 30 +++++++++++++++++++++++++++ external/homeassistant/compose.yaml | 11 ++++++++++ external/personal-blog/compose.yaml | 15 ++++++++++++++ external/personal-cgit/compose.yaml | 13 ++++++++++++ external/personal-website/compose.yaml | 11 ++++++++++ external/umami/compose.yaml | 38 ++++++++++++++++++++++++++++++++++ external/vaultwarden/compose.yaml | 11 ++++++++++ 8 files changed, 163 insertions(+) create mode 100644 external/compose.yaml create mode 100644 external/freshrss/compose.yaml create mode 100644 external/homeassistant/compose.yaml create mode 100644 external/personal-blog/compose.yaml create mode 100644 external/personal-cgit/compose.yaml create mode 100644 external/personal-website/compose.yaml create mode 100644 external/umami/compose.yaml create mode 100644 external/vaultwarden/compose.yaml (limited to 'external') diff --git a/external/compose.yaml b/external/compose.yaml new file mode 100644 index 0000000..91eb626 --- /dev/null +++ b/external/compose.yaml @@ -0,0 +1,34 @@ +name: 'external' +services: + homeassistant: + extends: + file: ./homeassistant/compose.yaml + service: homeassistant + freshrss: + extends: + file: ./freshrss/compose.yaml + service: freshrss + personal-blog: + extends: + file: ./personal-blog/compose.yaml + service: personal-blog + personal-cgit: + extends: + file: ./personal-cgit/compose.yaml + service: personal-cgit + personal-website: + extends: + file: ./personal-website/compose.yaml + service: personal-website + vaultwarden: + extends: + file: ./vaultwarden/compose.yaml + service: vaultwarden + umami: + extends: + file: ./umami/compose.yaml + service: umami + umami-db: + extends: + file: ./umami/compose.yaml + service: umami-db diff --git a/external/freshrss/compose.yaml b/external/freshrss/compose.yaml new file mode 100644 index 0000000..903b525 --- /dev/null +++ b/external/freshrss/compose.yaml @@ -0,0 +1,30 @@ +name: freshrss +version: '3.8' +services: + freshrss: + image: freshrss/freshrss + container_name: freshrss + restart: always + logging: + options: + max-size: 10m + volumes: + - "${FRESHRSS_DATA_PATH}:/var/www/FreshRSS/data" + - "${FRESHRSS_EXTENSIONS_PATH}:/var/www/FreshRSS/extensions" + ports: + - "${FRESHRSS_PORT}:80" + environment: + TZ: America/Chicago + CRON_MIN: 13,43 + FRESHRSS_ENV: development + FRESHRSS_INSTALL: |- + --api_enabled + --base_url ${FRESHRSS_BASE_URL} + --default_user ${FRESHRSS_USER} + --language en + FRESHRSS_USER: |- + --api_password ${FRESHRSS_ADMIN_API_PASSWORD} + --email ${FRESHRSS_ADMIN_EMAIL} + --language en + --password ${FRESHRSS_ADMIN_PASSWORD} + --user ${FRESHRSS_USER} diff --git a/external/homeassistant/compose.yaml b/external/homeassistant/compose.yaml new file mode 100644 index 0000000..b95a7ae --- /dev/null +++ b/external/homeassistant/compose.yaml @@ -0,0 +1,11 @@ +name: homeassistant +services: + homeassistant: + container_name: homeassistant + image: "ghcr.io/home-assistant/home-assistant:stable" + volumes: + - "${HOMEASSISTANT_DATA_PATH}:/config" + - /etc/localtime:/etc/localtime:ro + restart: always + privileged: true + network_mode: host diff --git a/external/personal-blog/compose.yaml b/external/personal-blog/compose.yaml new file mode 100644 index 0000000..61b11eb --- /dev/null +++ b/external/personal-blog/compose.yaml @@ -0,0 +1,15 @@ +name: personal-blog +version: '3.8' +services: + personal-blog: + hostname: blog + restart: always + container_name: personal-blog + image: personal-blog + build: + dockerfile: "${BLOG_DOCKERFILE_PATH}" + volumes: + - "${BLOG_STORAGE_PATH}:/app/storage" + - "${BLOG_CONTENT_PATH}:/app/content" + ports: + - "${BLOG_PORT}:80" diff --git a/external/personal-cgit/compose.yaml b/external/personal-cgit/compose.yaml new file mode 100644 index 0000000..347df51 --- /dev/null +++ b/external/personal-cgit/compose.yaml @@ -0,0 +1,13 @@ +name: personal-cgit +version: '3.8' +services: + personal-cgit: + image: cgit-pi + container_name: personal-cgit + hostname: cgit + volumes: + - "${CGIT_REPOS_PATH}:/srv/git/" + - "${CGIT_CGITRC_PATH}:/etc/cgitrc" + restart: always + ports: + - "${CGIT_PORT}:80" diff --git a/external/personal-website/compose.yaml b/external/personal-website/compose.yaml new file mode 100644 index 0000000..ed2e675 --- /dev/null +++ b/external/personal-website/compose.yaml @@ -0,0 +1,11 @@ +name: personal-website +version: '3.8' +services: + personal-website: + container_name: personal-website + image: nginx + volumes: + - "${WEBSITE_DATA_PATH}:/usr/share/nginx/html" + ports: + - "${WEBSITE_PORT}:80" + restart: always diff --git a/external/umami/compose.yaml b/external/umami/compose.yaml new file mode 100644 index 0000000..0672c19 --- /dev/null +++ b/external/umami/compose.yaml @@ -0,0 +1,38 @@ +version: '3' +services: + umami: + container_name: umami + image: ghcr.io/umami-software/umami:postgresql-latest + ports: + - "${UMAMI_WEB_PORT}:3000" + environment: + IGNORE_IP: "${UMAMI_IGNORE_IP}" + DATABASE_URL: "${UMAMI_DB_URL}" + DATABASE_TYPE: "${UMAMI_DB_TYPE}" + APP_SECRET: "${UMAMI_APP_SECRET}" + #depends_on: + #db: + #condition: service_healthy + restart: always + #healthcheck: + #test: ["CMD-SHELL", "curl http://localhost:3001/api/heartbeat"] + #interval: 5s + #timeout: 5s + # retries: 5 + umami-db: + container_name: 'umami-db' + image: postgres:15-alpine + environment: + POSTGRES_DB: umami + POSTGRES_USER: umami + POSTGRES_PASSWORD: umami + volumes: + - "${UMAMI_DB_DATA_PATH}:/var/lib/postgresql/data" + ports: + - "${UMAMI_DB_PORT}:5432" + restart: always + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 diff --git a/external/vaultwarden/compose.yaml b/external/vaultwarden/compose.yaml new file mode 100644 index 0000000..3225964 --- /dev/null +++ b/external/vaultwarden/compose.yaml @@ -0,0 +1,11 @@ +name: vaultwarden +version: '3.8' +services: + vaultwarden: + image: vaultwarden/server:latest + container_name: vaultwarden + restart: always + volumes: + - "${VAULTWARDEN_DATA_PATH}:/data" + ports: + - "${VAULTWARDEN_PORT}:80" -- cgit v1.2.3