Skip to content

Commit

Permalink
Merge branch 'feat/disable-services' into feat/indexer-cleaning-script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-snx committed Nov 14, 2024
2 parents 7f9b087 + 8b62d56 commit 0dc2d82
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
services:
db:
image: ghcr.io/synthetixio/data/postgres:${VERSION}
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-data:/var/lib/postgresql/data
ports:
- "${DB_PORT}:5432"
deploy:
resources:
limits:
cpus: "4.0"
memory: 8192M

indexer:
build:
context: ./indexers
Expand Down Expand Up @@ -45,8 +67,11 @@ services:
- data
env_file:
- .env
depends_on:
- db
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://postgres:$PG_PASSWORD@db:5432/postgres
AIRFLOW__API__AUTH_BACKENDS: airflow.api.auth.backend.basic_auth
volumes:
- ./scheduler/dags:/opt/airflow/dags
Expand Down

0 comments on commit 0dc2d82

Please sign in to comment.