Files
cryptohunter/docker-compose.yaml
2025-06-11 22:39:45 +03:00

29 lines
675 B
YAML

services:
app:
build: .
environment:
- RUST_LOG=info
volumes:
- ./config.yaml:/app/config.yaml
- ./snapshots:/snapshots
depends_on:
database:
condition: service_healthy
command: search bitcoin run
database:
image: postgres:16-alpine
environment:
POSTGRES_USER: cryptohunter
POSTGRES_PASSWORD: ${CRYPTOHUNTER_DATABASE_PASSWORD:-Passw0rd}
POSTGRES_DB: cryptohunter
volumes:
- database-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cryptohunter -d cryptohunter"]
interval: 5s
timeout: 5s
retries: 5
volumes:
database-data: