Skip to content

Commit

Permalink
add base only docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm committed Sep 19, 2024
1 parent 38fc5be commit 8656045
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions base.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: "2.4"

services:
db:
build:
context: ./postgres
dockerfile: Dockerfile
restart: always
networks:
- data
environment:
POSTGRES_PASSWORD: $PG_PASSWORD
PGDATA: /var/lib/postgresql/data
POSTGRES_SHARED_BUFFERS: "4GB"
POSTGRES_WORK_MEM: "100MB"
POSTGRES_MAINTENANCE_WORK_MEM: "1GB"
POSTGRES_EFFECTIVE_CACHE_SIZE: "8GB"
volumes:
- ./postgres/initdb:/docker-entrypoint-initdb.d
- ./postgres-data:/var/lib/postgresql/data
- ./parquet-data:/parquet-data
ports:
- "${DB_PORT}:5432"
deploy:
resources:
limits:
cpus: "4.0"
memory: 8192M

base-mainnet-processor:
build:
context: ./indexers/base-mainnet
networks:
- data
depends_on:
- db
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: base_mainnet
DB_PASS: $PG_PASSWORD
RPC_ENDPOINT: https://mainnet.base.org

networks:
data:
driver: bridge

0 comments on commit 8656045

Please sign in to comment.