-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.57 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:
postgres:
image: pgvector/pgvector:pg16
container_name: sentri-postgres
environment:
POSTGRES_DB: sentri
POSTGRES_USER: sentri
POSTGRES_PASSWORD: sentri
ports:
- "5432:5432"
volumes:
- sentri-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sentri -d sentri"]
interval: 10s
timeout: 5s
retries: 8
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sentri-backend
environment:
SENTRI_DATABASE_URL: jdbc:postgresql://postgres:5432/sentri
SENTRI_DATABASE_USERNAME: sentri
SENTRI_DATABASE_PASSWORD: sentri
SENTRI_MYSPACE_GRAPH_ENABLED: "true"
SENTRI_MYSPACE_GRAPH_URI: bolt://neo4j:7687
SENTRI_MYSPACE_GRAPH_USERNAME: neo4j
SENTRI_MYSPACE_GRAPH_PASSWORD: sentri-graph
SENTRI_TIMETABLE_UPLOAD_DIR: /app/data/timetable-uploads
ports:
- "8080:8080"
volumes:
- sentri-backend-data:/app/data
depends_on:
postgres:
condition: service_healthy
neo4j:
condition: service_healthy
neo4j:
image: neo4j:5
container_name: sentri-neo4j
environment:
NEO4J_AUTH: neo4j/sentri-graph
ports:
- "7474:7474"
- "7687:7687"
volumes:
- sentri-neo4j-data:/data
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p sentri-graph 'RETURN 1' >/dev/null 2>&1 || exit 1"]
interval: 15s
timeout: 10s
retries: 10
volumes:
sentri-postgres-data:
sentri-backend-data:
sentri-neo4j-data: