Wrap testing module inside a docker-compose

This commit is contained in:
Thales Lima
2024-06-27 16:02:19 +02:00
parent b598a12592
commit a9954873d9
7 changed files with 94 additions and 53 deletions

View File

@@ -0,0 +1,31 @@
version: '3.1'
services:
db:
image: ghcr.io/dbsystel/postgresql-partman:15-5
restart: "always"
environment:
POSTGRESQL_PASSWORD: mypassword
POSTGRESQL_DATABASE: tycho_indexer_0
POSTGRESQL_USERNAME: postgres
ports:
- "5431:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ${SUBSTREAMS_PATH}:/app/substreams/my_substream
- ../substreams:/app/substreams
- ../proto:/app/proto
- ./tycho-indexer:/app/testing/tycho-indexer
- ./runner.py:/app/testing/runner.py
ports:
- "80:80"
depends_on:
- db
env_file:
- ".env"
volumes:
postgres_data: