Skip to content

Commit

Permalink
Add chainlink node config
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbx committed Sep 14, 2023
1 parent 1fbb794 commit c0297d9
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chainlink/node/docker/cl-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

# Postgre SQL.

docker run --name cl-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres

# Chainlink node.

docker run --platform linux/x86_64/v8 --name chainlink -v ./ -it -p 6688:6688 --add-host=host.docker.internal:host-gateway smartcontract/chainlink:2.3.0 node -config ./config.toml -secrets ./secrets.toml start
49 changes: 49 additions & 0 deletions chainlink/node/docker/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[Log]

Level = 'warn'
JSONConsole = false
UnixTS = false

[WebServer]

AllowOrigins = '\*'
SecureCookies = false
HTTPWriteTimeout = '10s'
HTTPPort = 6688
SecureCookies = true
SessionTimeout = '15m'
SessionReaperExpiration = '240h'
HTTPMaxSize = '32768b'
StartTimeout = '15s'
ListenIP = '0.0.0.0'

[WebServer.TLS]

HTTPSPort = 0

[WebServer.RateLimit]

Authenticated = 1000
AuthenticatedPeriod = '1m'
Unauthenticated = 5
UnauthenticatedPeriod = '20s'

[[EVM]]

ChainID = '11155111'

[[EVM.Nodes]]

Name = 'chainlinknode'
WSURL = 'wss://CHANGE_ME_ETH_LOCATION'
HTTPURL = 'https://CHANGE_ME_ETH_LOCATION'

[Database]

DefaultIdleInTxSessionTimeout = '1h'
DefaultLockTimeout = '15s'
DefaultQueryTimeout = '10s'
LogQueries = false
MaxIdleConns = 10
MaxOpenConns = 20
MigrateOnStartup = true
7 changes: 7 additions & 0 deletions chainlink/node/docker/secrets.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Password]

Keystore = 'mykeystorepassword'

[Database]

URL = 'postgresql://postgres:[email protected]:5432/postgres?sslmode=disable'

0 comments on commit c0297d9

Please sign in to comment.