init: wip indexer

This commit is contained in:
2024-04-23 19:33:05 +08:00
commit d0f21b2fdd
14 changed files with 1011 additions and 0 deletions

22
dev/docker-compose.yaml Normal file
View File

@@ -0,0 +1,22 @@
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
user: postgres
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
- indexer-pg:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
indexer-pg:
driver: local

1
dev/init_db.sql Normal file
View File

@@ -0,0 +1 @@
CREATE DATABASE ge_celo_data;