From fa2e298e62ae2d76b32b36cc3f8dd694e286ef12 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 3 Jul 2024 21:48:25 +0900 Subject: [PATCH] create hoarder --- hoarder/.gitignore | 3 +++ hoarder/compose.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 hoarder/.gitignore create mode 100644 hoarder/compose.yml diff --git a/hoarder/.gitignore b/hoarder/.gitignore new file mode 100644 index 0000000..1a34aca --- /dev/null +++ b/hoarder/.gitignore @@ -0,0 +1,3 @@ +data +meilisearch +redis diff --git a/hoarder/compose.yml b/hoarder/compose.yml new file mode 100644 index 0000000..4df156c --- /dev/null +++ b/hoarder/compose.yml @@ -0,0 +1,59 @@ +# https://raw.githubusercontent.com/hoarder-app/hoarder/main/docker/docker-compose.yml +services: + web: + image: ghcr.io/hoarder-app/hoarder-web:0.14.0 + restart: unless-stopped + volumes: + - ./data:/data + ports: + - 3000:3000 + env_file: + - .env + environment: + REDIS_HOST: redis + MEILI_ADDR: http://meilisearch:7700 + DATA_DIR: /data + redis: + image: redis:7.2-alpine + restart: unless-stopped + volumes: + - ./redis:/data + chrome: + image: gcr.io/zenika-hub/alpine-chrome:123 + restart: unless-stopped + command: + - --no-sandbox + - --disable-gpu + - --disable-dev-shm-usage + - --remote-debugging-address=0.0.0.0 + - --remote-debugging-port=9222 + - --hide-scrollbars + meilisearch: + image: getmeili/meilisearch:v1.6 + restart: unless-stopped + env_file: + - .env + environment: + MEILI_NO_ANALYTICS: "true" + volumes: + - ./meilisearch:/meili_data + workers: + image: ghcr.io/hoarder-app/hoarder-workers:0.14.0 + restart: unless-stopped + volumes: + - ./data:/data + env_file: + - .env + environment: + REDIS_HOST: redis + MEILI_ADDR: http://meilisearch:7700 + BROWSER_WEB_URL: http://chrome:9222 + DATA_DIR: /data + depends_on: + web: + condition: service_started +# +# .env +# NEXTAUTH_SECRET=$(openssl rand -base64 36) +# MEILI_MASTER_KEY=$(openssl rand -base64 36) +# NEXTAUTH_URL=http://localhost:3000