-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 1.87 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
services:
postgres:
image: postgres:18-alpine
container_name: continuum-postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:?POSTGRES_USER must be set}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}
POSTGRES_DB: ${POSTGRES_DB:-continuum}
ports:
- "127.0.0.1:5432:5432" # Bind to localhost only
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB:-continuum}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
neo4j:
image: neo4j:2025.01-community
container_name: continuum-neo4j
environment:
NEO4J_AUTH: ${NEO4J_USER:?NEO4J_USER must be set}/${NEO4J_PASSWORD:?NEO4J_PASSWORD must be set}
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_dbms_memory_heap_initial__size: 512m
NEO4J_dbms_memory_heap_max__size: 1G
ports:
- "127.0.0.1:7474:7474" # HTTP - localhost only
- "127.0.0.1:7687:7687" # Bolt - localhost only
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:7474"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
redis:
image: redis:7.4-alpine
container_name: continuum-redis
ports:
- "127.0.0.1:6379:6379" # Bind to localhost only
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "$${REDIS_PASSWORD}", "ping"]
interval: 10s
timeout: 5s
retries: 5
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD:?REDIS_PASSWORD must be set}
restart: unless-stopped
volumes:
postgres_data:
neo4j_data:
neo4j_logs:
redis_data: