Init project

This commit is contained in:
2025-06-04 12:20:49 +03:00
commit 232684509f
13 changed files with 2891 additions and 0 deletions

29
docker-compose.yaml Normal file
View File

@@ -0,0 +1,29 @@
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:-12345678}
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: