-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.53 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
63
64
65
services:
neo4j:
image: neo4j:5.18-community
container_name: clara_neo4j
ports:
- "7474:7474"
- "7687:7687" # for bold -> Neo4j Browser
environment:
- NEO4J_AUTH=neo4j/clara_password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
- NEO4J_server_memory_heap_initial__size=512m
- NEO4J_server_memory_heap_max__size=2G
- NEO4J_server_memory_pagecache_size=512m
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- neo4j_plugins:/plugins
healthcheck:
test: [ "CMD", "cypher-shell", "-u", "neo4j", "-p", "clara_password", "RETURN 1" ]
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
container_name: clara_redis
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- redis_data:/data
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: clara_backend
ports:
- "3001:3001"
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USERNAME=neo4j
- NEO4J_PASSWORD=clara_password
- REDIS_URL=redis://redis:6379
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
neo4j:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- ./backend/.env
volumes:
neo4j_data:
neo4j_logs:
neo4j_plugins:
redis_data: