feat: Implement Garmin sync, login improvements, and utility scripts

This commit is contained in:
2025-10-11 11:56:25 -07:00
parent 56a93cd8df
commit 3819e4f5e2
921 changed files with 2058 additions and 371 deletions

View File

@@ -10,25 +10,29 @@ services:
volumes:
- ./backend:/app
environment:
DATABASE_URL: postgresql://user:password@db:5432/mydatabase
- API_PORT=8001
- CENTRAL_DB_URL=http://central_db:8000
command: uvicorn src.main:app --host 0.0.0.0 --port 8001 --reload
depends_on:
- db
- central_db
networks:
- fittrack-network
db:
image: postgres:13
central_db:
build:
context: ../FitTrack_CentralDB
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: user
POSTGRES_PASSWORD: password
- GARMIN_CREDENTIALS_ENCRYPTION_KEY=_dbk9p2Rs2p6fx9fHD6x9wy_vr_t723JGhgzALIoE8E=
volumes:
- db-data:/var/lib/postgresql/data
- central_db_data:/app/data # Add this line to persist data
networks:
- fittrack-network
volumes:
db-data:
central_db_data: # Define the named volume
networks:
fittrack-network: