fix: bind mount volumes (data/), remove redis, restart policy
Some checks failed
Deploy Tracker / deploy (push) Failing after 3s

This commit is contained in:
markov 2026-02-25 07:02:43 +01:00
parent 625e75a005
commit befa3c71bc
2 changed files with 5 additions and 16 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ __pycache__/
dist/
build/
.venv/
data/

View File

@ -8,12 +8,11 @@ services:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
volumes:
- ./src:/app/src
- uploads:/data/uploads
- ./data/uploads:/data/uploads
command: uvicorn tracker.app:app --host 0.0.0.0 --port 8100 --reload --reload-dir /app/src
restart: unless-stopped
postgres:
image: postgres:16-alpine
@ -24,21 +23,10 @@ services:
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U team_board -d team_board_dev"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6380:6379"
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata:
uploads:
restart: unless-stopped