-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
167 lines (161 loc) · 3.76 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
167 lines (161 loc) · 3.76 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: graphdone-dev
networks:
graphdone-internal:
driver: bridge
services:
graphdone-neo4j:
container_name: graphdone-neo4j
image: neo4j:5.26.12
environment:
NEO4J_AUTH: neo4j/graphdone_password
NEO4J_PLUGINS: '["graph-data-science", "apoc"]'
NEO4J_dbms_security_procedures_unrestricted: "gds.*,apoc.*"
NEO4J_dbms_security_procedures_allowlist: "gds.*,apoc.*"
# No external ports - internal network only
expose:
- "7474"
- "7687"
volumes:
- neo4j_data:/data
- logs:/logs
networks:
- graphdone-internal
# Security configurations
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
restart: unless-stopped
healthcheck:
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "graphdone_password", "RETURN 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
graphdone-redis:
container_name: graphdone-redis
image: redis:8-alpine
# No external ports - internal network only
expose:
- "6379"
volumes:
- redis_data:/data
networks:
- graphdone-internal
# Security configurations
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
restart: unless-stopped
user: "999:999" # Redis user
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=100m
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
graphdone-api:
container_name: graphdone-api
build:
context: ..
dockerfile: packages/server/Dockerfile.dev
environment:
- NODE_ENV=development
- NEO4J_URI=bolt://graphdone-neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=graphdone_password
- PORT=4127
- CORS_ORIGIN=http://localhost:3127
# No external ports - internal network only
expose:
- "4127"
depends_on:
graphdone-neo4j:
condition: service_healthy
graphdone-redis:
condition: service_healthy
volumes:
- logs:/app/logs
- sqlite_auth_data:/app/data
networks:
- graphdone-internal
# Security configurations
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
restart: unless-stopped
user: "1001:1001" # Non-root user
tmpfs:
- /tmp:noexec,nosuid,size=100m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4127/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
graphdone-web:
container_name: graphdone-web
build:
context: ..
dockerfile: packages/web/Dockerfile.dev
environment:
- PORT=3127
- VITE_PROXY_TARGET=http://graphdone-api:4127
- VITE_GRAPHQL_URL=http://localhost:3127/graphql
- VITE_GRAPHQL_WS_URL=ws://localhost:3127/graphql
# Only expose web UI to host
ports:
- "3127:3127"
depends_on:
- graphdone-api
volumes:
- logs:/app/logs
networks:
- graphdone-internal
# Security configurations
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
restart: unless-stopped
user: "1001:1001" # Non-root user
tmpfs:
- /tmp:noexec,nosuid,size=100m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3127"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
neo4j_data:
redis_data:
logs:
sqlite_auth_data: