forked from Defi-Project-list/debridge-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (104 loc) · 3.02 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3.6"
services:
chainlink-bsc:
container_name: chainlink-bsc${DOCKER_ID}
image: smartcontract/chainlink:0.10.2
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
env_file:
- chainlink-bsc.env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${BSC_DATABASE}?sslmode=disable
secrets:
- node_password
- apicredentials
- keystore
depends_on:
- postgres
networks:
- chainlink
volumes:
- ./chainlink-bsc:/chainlink
# chainlink-eth:
# container_name: chainlink-eth${DOCKER_ID}
# image: smartcontract/chainlink:0.10.2
# 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
# env_file:
# - chainlink-eth.env
# environment:
# - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${ETH_DATABASE}?sslmode=disable
# secrets:
# - node_password
# - apicredentials
# - keystore
# depends_on:
# - postgres
# networks:
# - chainlink
# volumes:
# - ./chainlink-eth:/chainlink
chainlink-heco:
container_name: chainlink-heco${DOCKER_ID}
image: smartcontract/chainlink:0.10.2
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
env_file:
- chainlink-heco.env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${HECO_DATABASE}?sslmode=disable
secrets:
- node_password
- apicredentials
- keystore
depends_on:
- postgres
networks:
- chainlink
volumes:
- ./chainlink-heco:/chainlink
postgres:
image: postgres
container_name: postgres${DOCKER_ID}
restart: on-failure
env_file:
- .env
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./pg-init-scripts:/docker-entrypoint-initdb.d
networks:
- chainlink
initiator:
build: ./initiator
image: initiator
container_name: initiator${DOCKER_ID}
restart: on-failure
env_file:
- initiator/.env
volumes:
- ./initiator/config:/config
environment:
- PGUSER=${POSTGRES_USER}
- PGHOST=${POSTGRES_HOST}
- PGPASSWORD=${POSTGRES_PASSWORD}
- PGDATABASE=${EI_DATABASE}
- PGPORT=${POSTGRES_PORT}
depends_on:
- postgres
- chainlink-heco
- chainlink-bsc
networks:
- chainlink
volumes:
chainlink:
name: chainlink${DOCKER_ID}
networks:
chainlink:
name: chainlink${DOCKER_ID}
secrets:
node_password:
file: ./password.txt
apicredentials:
file: ./apicredentials
keystore:
file: ./secrets/keystore.json