Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -1,14 +1,9 @@
|
|||||||
# OpenClimb Sync Server Configuration
|
# Required
|
||||||
|
|
||||||
# Required: Secret token for authentication
|
|
||||||
# Generate a secure random token and share it between your apps and server
|
|
||||||
AUTH_TOKEN=your-secure-secret-token-here
|
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)
|
# Optional
|
||||||
PORT=8080
|
DATA_FILE=/data/data.json
|
||||||
|
IMAGES_DIR=/data/images
|
||||||
# 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
|
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ services:
|
|||||||
openclimb-sync:
|
openclimb-sync:
|
||||||
image: ${IMAGE}
|
image: ${IMAGE}
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- ${APP_PORT}:8080
|
||||||
environment:
|
environment:
|
||||||
- AUTH_TOKEN=${AUTH_TOKEN:-your-secret-token-here}
|
- AUTH_TOKEN=${AUTH_TOKEN}
|
||||||
- DATA_FILE=/data/climb_data.json
|
- DATA_FILE=${DATA_FILE}
|
||||||
- IMAGES_DIR=/data/images
|
- IMAGES_DIR=${IMAGES_DIR}
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ${ROOT_DIR}:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user