forked from input-output-hk/cardano-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (67 loc) · 1.75 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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
x-logging: &logging
logging:
driver: 'json-file'
options:
max-size: '400k'
max-file: '20'
x-sdk-environment: &sdk-environment
HANDLE_POLICY_IDS: ${HANDLE_POLICY_IDS:-f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a}
services:
cardano-node:
volumes:
- ./config/network/${NETWORK:-mainnet}/cardano-node:/config
- ./config/network/${NETWORK:-mainnet}/genesis:/genesis
ogmios:
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
cardano-db-sync:
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
cardano-smash:
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
cardano-submit-api:
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
blockfrost-worker:
<<: *logging
build:
context: ../../
target: blockfrost-worker
depends_on:
postgres:
condition: service_healthy
environment:
- CACHE_TTL=${CACHE_TTL:-240}
- CREATE_SCHEMA=${CREATE_SCHEMA:-true}
- DROP_SCHEMA=${DROP_SCHEMA:-false}
- LOGGER_MIN_SEVERITY=${LOGGER_MIN_SEVERITY:-info}
- NETWORK=${NETWORK:-mainnet}
- SCAN_INTERVAL=${SCAN_INTERVAL:-60}
ports:
- ${API_PORT:-4001}:3000
restart: on-failure
secrets:
- blockfrost_key
- postgres_db_db_sync
- postgres_password
- postgres_user
volumes:
- ../..:/app
handle-projector:
environment:
<<: *sdk-environment
postgres:
volumes:
- postgres-data:/var/lib/postgresql/data
provider-server:
environment:
<<: *sdk-environment
handle-provider-server:
environment:
<<: *sdk-environment
secrets:
blockfrost_key:
file: ./blockfrost-keys/${NETWORK:-mainnet}.key
volumes:
postgres-data: