-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): Update docker-compose to use lily worker pattern (#1044)
* feat(docker): Update docker-compose to use lily worker pattern * fix: Snapshot envvar; prom host; env quotes * chore: Address comments Co-authored-by: Mike Greenberg <[email protected]>
- Loading branch information
Showing
9 changed files
with
162 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[API] | ||
ListenAddress = "/ip4/0.0.0.0/tcp/1234/http" | ||
[Libp2p] | ||
ListenAddresses = ["/ip4/0.0.0.0/tcp/1347"] | ||
ConnMgrLow = 400 | ||
ConnMgrHigh = 500 | ||
ConnMgrGrace = "5m0s" | ||
[Queue] | ||
[Queue.Notifiers] | ||
[Queue.Notifiers.Notifier1] | ||
Network = "tcp" | ||
Addr = "redis-queue:6379" | ||
DB = 0 | ||
PoolSize = 0 | ||
[Storage] | ||
[Storage.Postgresql] | ||
[Storage.Postgresql.postgres] | ||
SchemaName = "lily" | ||
URLEnv = "LILY_STORAGE_POSTGRESQL_DB_URL" | ||
ApplicationName = "lily" | ||
PoolSize = 20 | ||
AllowUpsert = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# FOR DEV ONLY: disabled authentication | ||
ALLOW_EMPTY_PASSWORD=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Path for lily state should be on a persisted volume | ||
LILY_REPO=/var/lib/lily | ||
|
||
# Config path default is below but may be customized | ||
#LILY_CONFIG=/var/lib/lily/config.toml | ||
|
||
# Postgres URL may be overridden | ||
LILY_STORAGE_POSTGRESQL_DB_URL=postgres://postgres:password@timescaledb:5432/postgres?sslmode=disable | ||
|
||
# Enable IMPORT_SNAPSHOT below to use snapshot on lily startup | ||
#LILY_DOCKER_INIT_IMPORT_MAINNET_SNAPSHOT=true | ||
#LILY_DOCKER_INIT_IMPORT_SNAPSHOT_PATH= | ||
|
||
# Debugging options | ||
#LILY_TRACING=true | ||
LILY_PROMETHEUS_PORT=0.0.0.0:9091 | ||
|
||
# Logging options | ||
GOLOG_LOG_FMT=json | ||
GOLOG_LOG_LEVEL=info | ||
LILY_LOG_LEVEL_NAMED=vm:error,badgerbs:error | ||
|
||
# Queue configuration | ||
LILY_REDIS_ADDR=redis-queue:6379 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[API] | ||
ListenAddress = "/ip4/0.0.0.0/tcp/1234/http" | ||
[Libp2p] | ||
ListenAddresses = ["/ip4/0.0.0.0/tcp/1347"] | ||
ConnMgrLow = 400 | ||
ConnMgrHigh = 500 | ||
ConnMgrGrace = "5m0s" | ||
[Queue] | ||
[Queue.Workers] | ||
[Queue.Workers.Worker1] | ||
[Queue.Workers.Worker1.RedisConfig] | ||
Network = "tcp" | ||
Addr = "redis-queue:6379" | ||
DB = 0 | ||
PoolSize = 0 | ||
[Queue.Workers.Worker1.WorkerConfig] | ||
Concurrency = 1 | ||
LoggerLevel = "debug" | ||
WatchQueuePriority = 5 | ||
FillQueuePriority = 3 | ||
IndexQueuePriority = 1 | ||
WalkQueuePriority = 1 | ||
StrictPriority = false | ||
ShutdownTimeout = 30000000000 | ||
[Storage] | ||
[Storage.Postgresql] | ||
[Storage.Postgresql.postgres] | ||
SchemaName = "lily" | ||
URLEnv = "LILY_STORAGE_POSTGRESQL_DB_URL" | ||
ApplicationName = "lily" | ||
PoolSize = 20 | ||
AllowUpsert = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters