-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.18 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
version: "3"
services:
db:
image: postgres:14.3-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432"
volumes:
- ./data/:/var/lib/postgresql/data
- ./scripts/on-start/:/usr/scripts/sh
- ./scripts/sql/:/usr/scripts/sql
env_file: ./.env
command: bash -c "su root /usr/scripts/sh/setup.sh && su postgres bash -c 'postgres'"
chainlink-fantom:
image: smartcontract/chainlink:1.3.0
ports:
- "6688:6688"
volumes:
- ./nodes/fantom:/chainlink
env_file: nodes/fantom/.env
restart: always
command: local n -a /chainlink/.creds -p /chainlink/.pass
environment:
- ROOT=/chainlink
- LOG_LEVEL=debug
- ETH_CHAIN_ID=250
- CHAINLINK_TLS_PORT=0
- SECURE_COOKIES=false
- ALLOW_ORIGINS=*
- ETH_URL=${RPC_URL}
- DATABSE_URL=${DATABASE_URL}
depends_on:
- db