-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: smalda-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: smalda
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: smalda-redis
ports:
- '6379:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 5
# Stellar document-verifier (Rust / Axum). The backend (NestJS) addresses
# it from inside the compose network at http://stellar-doc-verifier:8080.
stellar-doc-verifier:
build:
context: .
dockerfile: contract/Dockerfile
container_name: smalda-stellar-doc-verifier
environment:
APP_ENV: production
PORT: 8080
STELLAR_HORIZON_URL: ${STELLAR_HORIZON_URL:-https://horizon-testnet.stellar.org}
STELLAR_SECRET_KEY: ${STELLAR_SECRET_KEY:-}
REDIS_URL: redis://redis:6379
STELLAR_MAX_RETRIES: ${STELLAR_MAX_RETRIES:-3}
HORIZON_RETRY_INITIAL_BACKOFF_MS: ${HORIZON_RETRY_INITIAL_BACKOFF_MS:-200}
HORIZON_RETRY_MAX_BACKOFF_MS: ${HORIZON_RETRY_MAX_BACKOFF_MS:-5000}
HORIZON_RETRY_JITTER: ${HORIZON_RETRY_JITTER:-0.25}
HORIZON_CB_FAILURE_THRESHOLD: ${HORIZON_CB_FAILURE_THRESHOLD:-5}
HORIZON_CB_COOLDOWN_SECS: ${HORIZON_CB_COOLDOWN_SECS:-30}
LOG_LEVEL: ${LOG_LEVEL:-info}
ports:
- '8088:8080'
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:8080/health >/dev/null 2>&1 || exit 1']
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
postgres_data: