Init project
This commit is contained in:
29
docker-compose.yaml
Normal file
29
docker-compose.yaml
Normal 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:
|
||||
Reference in New Issue
Block a user