-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
56 lines (52 loc) · 1.41 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: default
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 3s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data # Persist data on the host
indexer:
build:
context: .
dockerfile: apps/indexer/Dockerfile
target: dev
volumes:
- ./apps/indexer/src:/app/apps/indexer/src
- ./apps/indexer/ponder.config.ts:/app/apps/indexer/ponder.config.ts
- ./apps/indexer/ponder.schema.ts:/app/apps/indexer/ponder.schema.ts
depends_on:
postgres:
condition: service_healthy
env_file:
- apps/indexer/.env.local
ports:
- "42069:42069"
# web:
# build:
# context: .
# dockerfile: apps/web/Dockerfile
# target: dev
# volumes:
# - ./apps/web/src:/app/apps/web/src
# - ./apps/web/next.config.js:/app/apps/web/next.config.js
# - ./apps/web/tsconfig.json:/app/apps/web/tsconfig.json
# - ./apps/web/codegen.ts:/app/apps/web/codegen.ts
# depends_on:
# postgres:
# condition: service_healthy
# environment:
# - WATCHPACK_POLLING=true
# env_file:
# - apps/web/.env
# ports:
# - "3000:3000"
volumes:
postgres_data: