forked from CNXTEoEorg/ledger-wallet-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (36 loc) · 1.12 KB
/
docker-compose.yml
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
version: '2.4'
services:
postgres-server-ssl:
image: postgres
environment:
POSTGRES_DB: wallet_daemon_test
POSTGRES_USER: ledger
POSTGRES_PASSWORD: ledger_secret
healthcheck:
test: "pg_isready -h localhost -p 5432 -U ledger -d postgres"
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
ports:
- "5432:5432"
command: -c "ssl=on" -c "ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key" -c "ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem"
wallet-daemon:
image: ledgerhq/ledger-wallet-daemon:latest
environment:
CORE_DATABASE_ENGINE: postgres
CORE_PG_HOST: postgres-server-ssl
CORE_PG_USER: ledger
CORE_PG_PWD: ledger_secret
CORE_PG_DB_NAME_PREFIX: wallet_daemon_
entrypoint: /app/run.sh -Dscala.concurrent.context.numThreads=x8 -Dscala.concurrent.context.maxThreads=x8
healthcheck:
test: "command -v curl && curl -fsS http://wallet-daemon:9200/_health"
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
ports:
- "9200:9200"
depends_on:
- postgres-server-ssl