diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 2a6c1432..dd5de257 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -7,6 +7,7 @@ services: container_name: solver depends_on: - chain + - postgres build: context: .. dockerfile: ./docker/solver/Dockerfile @@ -21,6 +22,9 @@ services: - SERVER_URL=${SERVER_URL} - WEB3_RPC_URL=${WEB3_RPC_URL} - DISABLE_TELEMETRY=${DISABLE_TELEMETRY} + - STORE_TYPE=${STORE_TYPE} + - STORE_CONN_STR=${STORE_CONN_STR} + - STORE_GORM_LOG_LEVEL=${STORE_GORM_LOG_LEVEL} ports: - 8081:8081 healthcheck: diff --git a/stack b/stack index f2974f82..5c805278 100755 --- a/stack +++ b/stack @@ -11,6 +11,9 @@ OS_ARCH=$(uname -m | awk '{if ($0 ~ /arm64|aarch64/) print "arm64"; else if ($0 function compose-env() { export ADMIN_ADDRESS=${@:-"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"} export DISABLE_TELEMETRY=false + export STORE_TYPE=database + export STORE_CONN_STR=postgres://postgres:postgres@localhost:5432/solver-db?sslmode=disable + export STORE_GORM_LOG_LEVEL=silent } function compose-init() {