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/ dist/
build/ build/
.venv/ .venv/
data/

View File

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