diff --git a/chainlink/node/docker/cl-docker.sh b/chainlink/node/docker/cl-docker.sh new file mode 100755 index 0000000..03af197 --- /dev/null +++ b/chainlink/node/docker/cl-docker.sh @@ -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 diff --git a/chainlink/node/docker/config.toml b/chainlink/node/docker/config.toml new file mode 100644 index 0000000..efe3b7d --- /dev/null +++ b/chainlink/node/docker/config.toml @@ -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 diff --git a/chainlink/node/docker/secrets.toml b/chainlink/node/docker/secrets.toml new file mode 100644 index 0000000..6f7de8f --- /dev/null +++ b/chainlink/node/docker/secrets.toml @@ -0,0 +1,7 @@ +[Password] + +Keystore = 'mykeystorepassword' + +[Database] + +URL = 'postgresql://postgres:mysecretpassword@host.docker.internal:5432/postgres?sslmode=disable'