-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
106 lines (99 loc) · 2.62 KB
/
docker-compose.yml
File metadata and controls
106 lines (99 loc) · 2.62 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.9"
services:
neo4j:
image: neo4j:5.26-community
container_name: pathprivilege-neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: neo4j/${NEO4J_PASSWORD:-pathprivilege}
NEO4J_PLUGINS: '["apoc", "graph-data-science"]'
NEO4J_dbms_memory_heap_max__size: 2G
NEO4J_dbms_memory_pagecache_size: 1G
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- ./neo4j/init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "${NEO4J_PASSWORD:-pathprivilege}", "RETURN 1"]
interval: 10s
timeout: 5s
retries: 10
postgres:
image: postgres:16-alpine
container_name: pathprivilege-postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: pathprivilege
POSTGRES_USER: pathprivilege
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pathprivilege}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pathprivilege"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
container_name: pathprivilege-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
backend:
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
container_name: pathprivilege-backend
ports:
- "8080:8080"
environment:
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: ${NEO4J_PASSWORD:-pathprivilege}
POSTGRES_DSN: postgres://pathprivilege:${POSTGRES_PASSWORD:-pathprivilege}@postgres:5432/pathprivilege?sslmode=disable
REDIS_ADDR: redis:6379
PORT: "8080"
depends_on:
neo4j:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_started
collector:
build:
context: ./collectors
dockerfile: ../docker/Dockerfile.collector
container_name: pathprivilege-collector
environment:
BACKEND_URL: http://backend:8080
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: ${NEO4J_PASSWORD:-pathprivilege}
REDIS_ADDR: redis:6379
depends_on:
- backend
volumes:
- ./collectors:/app
frontend:
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
container_name: pathprivilege-frontend
ports:
- "3000:3000"
environment:
VITE_API_URL: http://localhost:8080
depends_on:
- backend
volumes:
- ./frontend/src:/app/src
volumes:
neo4j_data:
neo4j_logs:
postgres_data:
redis_data: