Files
counter/docker-compose.yml
aovantsev 324e861218
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
basic frontend
2025-10-03 11:32:59 +03:00

34 lines
778 B
YAML

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:
DATABASE_URL: postgres://postgres:password@postgres:5432/counter_db?sslmode=disable
JWT_SECRET: your-super-secret-jwt-key-change-in-production
GIN_MODE: release
depends_on:
postgres:
condition: service_healthy
volumes:
- ./frontend/build:/app/frontend/build
volumes:
postgres_data: