forked from smartcontractkit/chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
96 lines (90 loc) · 2.51 KB
/
docker-compose.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.5'
services:
node:
container_name: chainlink-node
image: smartcontract/chainlink
build:
context: ../../
dockerfile: core/chainlink.Dockerfile
# Note that the keystore import allows us to submit transactions
# immediately because addresses are specified when starting the
# parity/geth node to be prefunded with eth.
entrypoint: /bin/sh -c "chainlink node import /run/secrets/keystore && chainlink node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
restart: always
environment:
- ETH_CHAIN_ID
- LOG_LEVEL
- ROOT
- ETH_URL
- MIN_OUTGOING_CONFIRMATIONS
- MIN_INCOMING_CONFIRMATIONS
- MINIMUM_CONTRACT_PAYMENT_LINK_JUELS
- DEFAULT_HTTP_TIMEOUT
- CHAINLINK_DEV
- EXPLORER_URL
- EXPLORER_ACCESS_KEY
- EXPLORER_SECRET
- SECURE_COOKIES
- CHAINLINK_TLS_PORT
- ENABLE_EXPERIMENTAL_ADAPTERS
env_file:
- chainlink-variables.env
ports:
- 6688:6688
secrets:
- node_password
- apicredentials
- keystore
depends_on:
- explorer
node-2:
container_name: chainlink-node-2
image: smartcontract/chainlink
build:
context: ../../
dockerfile: core/chainlink.Dockerfile
entrypoint: /bin/sh -c "chainlink node import /run/secrets/keystore && chainlink node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
restart: always
environment:
- ETH_CHAIN_ID
- LOG_LEVEL
- ROOT
- ETH_URL
- MIN_OUTGOING_CONFIRMATIONS
- MIN_INCOMING_CONFIRMATIONS
- MINIMUM_CONTRACT_PAYMENT_LINK_JUELS
- DEFAULT_HTTP_TIMEOUT
- CHAINLINK_DEV
- SECURE_COOKIES
- CHAINLINK_TLS_PORT
- ENABLE_EXPERIMENTAL_ADAPTERS
env_file:
- chainlink-variables.env
ports:
- 6699:6688
secrets:
- node_password
- apicredentials
- keystore
explorer-db:
container_name: chainlink-explorer-db
image: postgres:11.6
volumes:
- explorer-db-data:/var/lib/postgresql/data
ports:
- 5433:5432
environment:
POSTGRES_DB: $EXPLORER_DB_NAME
POSTGRES_PASSWORD: $EXPLORER_PGPASSWORD
# TODO
# - replace clroot with secrets
# - extract explorer and tools into separate docker-compose files
secrets:
node_password:
file: ../clroot/password.txt
apicredentials:
file: ../clroot/apicredentials
keystore:
file: ../secrets/0xb90c7E3F7815F59EAD74e7543eB6D9E8538455D6.json
volumes:
explorer-db-data: