-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.27 KB
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
services:
db:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: dev_monks
ports:
- "5435:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
target: runner
restart: always
ports:
- "3000:3000"
environment:
DATABASE_URL: "postgresql://postgres:password@db:5432/dev_monks?sslmode=disable"
INNGEST_BASE_URL: http://inngest:8288
INNGEST_DEV: 1
INNGEST_EVENT_KEY: "local"
NODE_ENV: production
OPENROUTER_API_KEY: "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" # Intentionally provided for evaluation purposes
NEXT_PUBLIC_APP_URL: http://localhost:3000
depends_on:
db:
condition: service_healthy
inngest:
image: inngest/inngest:latest
ports:
- "8288:8288"
environment:
INNGEST_LOG_LEVEL: info
command: >
inngest dev -u http://app:3000/api/inngest --port 8288 --host 0.0.0.0 --no-discovery
depends_on:
- app
volumes:
postgres_data: