-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 995 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 995 Bytes
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
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: knowledge_nuggets
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./backend/db/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
redis:
image: redis:7
ports:
- "6379:6379"
api:
build:
context: ./backend
env_file:
- ./backend/.env
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/knowledge_nuggets
REDIS_URL: redis://redis:6379
ports:
- "4000:4000"
depends_on:
- postgres
- redis
worker:
build:
context: ./backend
command: ["node", "src/worker.js"]
env_file:
- ./backend/.env
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/knowledge_nuggets
REDIS_URL: redis://redis:6379
depends_on:
- postgres
- redis
volumes:
pgdata: