relay filter/appview bootstrap
1services: 2 prism-db: 3 image: postgres:latest 4 environment: 5 - POSTGRES_USER=prism 6 - POSTGRES_PASSWORD=prism 7 - POSTGRES_DB=prism 8 ports: 9 - "5432:5432" 10 healthcheck: 11 test: ["CMD-SHELL", "pg_isready -U prism"] 12 interval: 5s 13 timeout: 5s 14 retries: 5 15 16 prism-server: 17 build: . 18 command: bun run start:server 19 ports: 20 - "3000:3000" 21 environment: 22 - DATABASE_URL=postgresql://prism:prism@prism-db:5432/prism 23 - NODE_ENV=production 24 - LOG_LEVEL=info 25 depends_on: 26 prism-db: 27 condition: service_healthy 28 restart: always 29 30 prism-firehose: 31 build: . 32 command: bun run start:firehose 33 environment: 34 - DATABASE_URL=postgresql://prism:prism@prism-db:5432/prism 35 - NODE_ENV=production 36 - LOG_LEVEL=info 37 depends_on: 38 prism-db: 39 condition: service_healthy 40 restart: always 41 42 prism-backfill: 43 build: . 44 command: bun run start:backfill 45 environment: 46 - DATABASE_URL=postgresql://prism:prism@prism-db:5432/prism 47 - NODE_ENV=production 48 - LOG_LEVEL=info 49 depends_on: 50 prism-db: 51 condition: service_healthy 52 # This service is a task, so we don't restart it automatically if it exits successfully 53 restart: on-failure