-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.44 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
52
53
54
55
56
57
58
59
60
61
62
services:
checkpoint-db:
image: postgres:15-alpine
container_name: deepresearch-postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-checkpointing_db}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- "${POSTGRES_HOST_PORT:-5433}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-checkpointing_db}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- morgana-network
restart: unless-stopped
backend:
build:
context: .
dockerfile: Dockerfile
container_name: morgana-backend
# Remove the ports section to not expose to host
env_file:
- .env
depends_on:
checkpoint-db:
condition: service_healthy
volumes:
- ./conf.yaml:/app/conf.yaml:ro
restart: unless-stopped
networks:
- morgana-network
frontend:
build:
context: ./web
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
- NEXT_PUBLIC_DEBUG_STREAM=${NEXT_PUBLIC_DEBUG_STREAM:-false}
container_name: morgana-frontend
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- backend
restart: unless-stopped
networks:
- morgana-network
networks:
morgana-network:
driver: bridge
volumes:
postgres_data: