-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (81 loc) · 2.06 KB
/
docker-compose.yml
File metadata and controls
85 lines (81 loc) · 2.06 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
neo4j:
image: neo4j:5.12
container_name: intellinet-neo4j
ports:
- "7474:7474" # HTTP
- "7687:7687" # Bolt
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_dbms_memory_pagecache_size=512M
- NEO4J_dbms_memory_heap_initial__size=512M
- NEO4J_dbms_memory_heap_max__size=1G
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
networks:
- intellinet-network
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p password 'RETURN 1'"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: intellinet-backend
ports:
- "8000:8000"
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=${NEO4J_USER:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-password}
- SQLITE_DB_PATH=/app/data/metrics.db
- JWT_SECRET=${JWT_SECRET:-your-secret-key-change-in-production}
- ENVIRONMENT=${ENVIRONMENT:-production}
volumes:
- backend_data:/app/data
- ./config.yaml:/app/config.yaml:ro
depends_on:
neo4j:
condition: service_healthy
networks:
- intellinet-network
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: intellinet-frontend
ports:
- "80:80"
depends_on:
- backend
networks:
- intellinet-network
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:80/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
neo4j_data:
driver: local
neo4j_logs:
driver: local
backend_data:
driver: local
networks:
intellinet-network:
driver: bridge