changed to db for fit streams

This commit is contained in:
2026-01-14 05:39:16 -08:00
parent 362f4cb5aa
commit 45dbc32295
99 changed files with 2118 additions and 1684 deletions

View File

@@ -4,7 +4,7 @@ services:
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://postgres:password@db:5432/fitbit_garmin_sync
- DATABASE_URL=postgresql://postgres:postgres@db:5432/fitbit_garmin_sync
- FITBIT_CLIENT_ID=${FITBIT_CLIENT_ID:-}
- FITBIT_CLIENT_SECRET=${FITBIT_CLIENT_SECRET:-}
- FITBIT_REDIRECT_URI=${FITBIT_REDIRECT_URI:-http://localhost:8000/api/setup/fitbit/callback}
@@ -13,16 +13,40 @@ services:
volumes:
- ./logs:/app/logs # For application logs
- .:/app # Mount source code for development
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
develop:
watch:
- action: sync
path: .
target: /app
ignore:
- .git
- .venv
- .gemini
- __pycache__
- "**/__pycache__"
- docker/data
- action: rebuild
path: requirements.txt
db:
image: postgres:15
image: ghcr.io/sstent/nomad-pgsql-patroni:latest
environment:
- POSTGRES_DB=fitbit_garmin_sync
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- PATRONI_CONFIG_FILE=/secrets/patroni.yml
# PGDATA and other env vars from Nomad, though patroni.yml handles most
- PGDATA=/store/data
ports:
- "5433:5432" # Changed to avoid conflicts
- "5433:5432"
depends_on:
- consul
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/data:/store/data
- ./docker/patroni.yml:/secrets/patroni.yml
consul:
image: hashicorp/consul:1.15
ports:
- "8500:8500"
command: agent -dev -client 0.0.0.0
volumes:
postgres_data: