From 7a58faa39117a6e649fd4f897b50219d7e1f54a8 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Thu, 9 Oct 2025 17:32:21 +0200 Subject: [PATCH] notesnook: removed useless services --- docker/tools/notesnook/docker-compose.yml | 83 +---------------------- 1 file changed, 1 insertion(+), 82 deletions(-) diff --git a/docker/tools/notesnook/docker-compose.yml b/docker/tools/notesnook/docker-compose.yml index dc1e77e..c6f3ce1 100644 --- a/docker/tools/notesnook/docker-compose.yml +++ b/docker/tools/notesnook/docker-compose.yml @@ -1,38 +1,4 @@ services: - validate: - image: vandot/alpine-bash - entrypoint: /bin/bash - env_file: .env - command: - - -c - - | - # List of required environment variables - required_vars=( - "INSTANCE_NAME" - "NOTESNOOK_API_SECRET" - "DISABLE_SIGNUPS" - "SMTP_USERNAME" - "SMTP_PASSWORD" - "SMTP_HOST" - "SMTP_PORT" - "AUTH_SERVER_PUBLIC_URL" - "NOTESNOOK_APP_PUBLIC_URL" - "MONOGRAPH_PUBLIC_URL" - "ATTACHMENTS_SERVER_PUBLIC_URL" - ) - - # Check each required environment variable - for var in "$${required_vars[@]}"; do - if [ -z "$${!var}" ]; then - echo "Error: Required environment variable $$var is not set." - exit 1 - fi - done - - echo "All required environment variables are set." - # Ensure the validate service runs first - restart: "no" - notesnook-db: image: mongo:8.0.15 hostname: notesnookdb @@ -49,26 +15,6 @@ services: retries: 3 start_period: 60s - # the notesnook sync server requires transactions which only work - # with a MongoDB replica set. - # This job just runs `rs.initiate()` on our mongodb instance - # upgrading it to a replica set. This is only required once but we running - # it multiple times is no issue. - initiate-rs0: - image: mongo:8.0.15 - networks: - - notesnook - depends_on: - - notesnook-db - entrypoint: /bin/sh - command: - - -c - - | - mongosh mongodb://notesnookdb:27017 <