add logging
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
aovantsev
2025-10-08 21:00:23 +03:00
parent e2cf730474
commit 4ae5bf6a81
9 changed files with 154 additions and 32 deletions

View File

@@ -1,26 +1,11 @@
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: counter_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
app:
build: .
ports:
- "8080:8080"
environment:
- ENVIRONMENT=development
- LOG_VOLUME=${LOG_VOLUME:-counter_logs}
env_file:
- .env.development
depends_on:
@@ -28,6 +13,4 @@ services:
condition: service_healthy
volumes:
- ./frontend/build:/app/frontend/build
volumes:
postgres_data:
- ${LOG_VOLUME:-counter_logs}:/app/logs