-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (67 loc) · 1.92 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
71 lines (67 loc) · 1.92 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
66
67
68
69
70
71
services:
kafka:
image: apache/kafka:3.9.0
container_name: reconforge-kafka
ports:
- "9092:9092"
volumes:
- ./system/kafka/server.properties:/opt/kafka/config/server.properties:ro
command: >
bash -c "/opt/kafka/bin/kafka-storage.sh random-uuid > /tmp/uuid &&
/opt/kafka/bin/kafka-storage.sh format -t $$(cat /tmp/uuid) -c /opt/kafka/config/server.properties &&
/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties"
mem_limit: 1g
healthcheck:
test: ["CMD-SHELL", "/opt/kafka/bin/kafka-topics.sh --bootstrap-server localhost:9092 --list >/dev/null 2>&1"]
interval: 10s
timeout: 5s
retries: 15
postgres:
image: postgres:16
container_name: reconforge-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER:-reconforge}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-reconforge_local}
- POSTGRES_DB=${POSTGRES_DB:-reconforge}
volumes:
- pgdata:/var/lib/postgresql/data
mem_limit: 512m
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-reconforge}"]
interval: 10s
timeout: 5s
retries: 10
neo4j:
image: neo4j:5-community
container_name: reconforge-neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=${NEO4J_AUTH:-neo4j/reconforge_local}
- NEO4J_server_memory_heap_max__size=512M
- NEO4J_server_memory_pagecache_size=128M
volumes:
- neodata:/data
mem_limit: 1g
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p reconforge_local 'RETURN 1'"]
interval: 15s
timeout: 10s
retries: 10
redis:
image: redis:7
container_name: reconforge-redis
ports:
- "6379:6379"
mem_limit: 128m
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
volumes:
pgdata:
neodata: