From 7cbb3332871e9ec7446ed9b0748807d05cc3f335 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 29 Sep 2025 17:47:09 +0000 Subject: [PATCH 1/2] Update sync/docker-compose.yml --- sync/docker-compose.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sync/docker-compose.yml b/sync/docker-compose.yml index ca7977d..951b61a 100644 --- a/sync/docker-compose.yml +++ b/sync/docker-compose.yml @@ -2,11 +2,12 @@ services: openclimb-sync: image: ${IMAGE} ports: - - "8080:8080" + - ${APP_PORT}:8080 environment: - - AUTH_TOKEN=${AUTH_TOKEN:-your-secret-token-here} - - DATA_FILE=/data/climb_data.json - - IMAGES_DIR=/data/images + - AUTH_TOKEN=${AUTH_TOKEN} + - DATA_FILE=${DATA_FILE} + - IMAGES_DIR=${IMAGES_DIR} volumes: - - ./data:/data + - ${ROOT_DIR}:/data restart: unless-stopped +networks: {} From 016d427ff8029b7d92961fcc6d40261bb915fb59 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 29 Sep 2025 17:49:25 +0000 Subject: [PATCH 2/2] Update sync/.env.example --- sync/.env.example | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/sync/.env.example b/sync/.env.example index bc6aa89..f39de10 100644 --- a/sync/.env.example +++ b/sync/.env.example @@ -1,14 +1,9 @@ -# OpenClimb Sync Server Configuration - -# Required: Secret token for authentication -# Generate a secure random token and share it between your apps and server +# Required AUTH_TOKEN=your-secure-secret-token-here +IMAGE="git.atri.dad/atridad/openclimb-sync:latest" +APP_PORT=1337 +ROOT_DIR="./data" -# Optional: Port to run the server on (default: 8080) -PORT=8080 - -# Optional: Path to store the sync data (default: ./data/climb_data.json) -DATA_FILE=./data/climb_data.json - -# Optional: Directory to store images (default: ./data/images) -IMAGES_DIR=./data/images +# Optional +DATA_FILE=/data/data.json +IMAGES_DIR=/data/images