-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (64 loc) · 2 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
# Solarch — one-command self-host bundle.
#
# cp .env.example .env # fill in Neo4j password + an LLM provider key
# docker compose up --build
# → http://localhost:3000
services:
neo4j:
image: neo4j:5-community
environment:
NEO4J_AUTH: neo4j/${NEO4J_PASSWORD:?set NEO4J_PASSWORD in .env}
NEO4J_PLUGINS: '["apoc"]'
NEO4J_server_memory_heap_initial__size: ${NEO4J_HEAP:-512m}
NEO4J_server_memory_heap_max__size: ${NEO4J_HEAP:-512m}
NEO4J_server_memory_pagecache_size: ${NEO4J_PAGECACHE:-512m}
volumes:
- solarch_neo4j_data:/data
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:7474"]
interval: 5s
timeout: 3s
retries: 20
restart: unless-stopped
server:
build:
context: .
dockerfile: apps/server/Dockerfile
env_file: .env
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 4000
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: ${NEO4J_PASSWORD:?set NEO4J_PASSWORD in .env}
CORS_ORIGIN: ${PUBLIC_URL:-http://localhost:3000}
LOCAL_USER_ID: ${LOCAL_USER_ID:-local_owner}
depends_on:
neo4j:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://127.0.0.1:4000/api/v1/health',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))\""]
interval: 10s
timeout: 5s
retries: 30
start_period: 40s
web:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
VITE_API_URL: ""
ports:
- "${BIND_ADDRESS:-127.0.0.1}:${PORT_PUBLIC:-3000}:3000"
environment:
BIND_ADDRESS: ${BIND_ADDRESS:-127.0.0.1}
SOLARCH_BASIC_AUTH_USER: ${SOLARCH_BASIC_AUTH_USER:-}
SOLARCH_BASIC_AUTH_HASH: ${SOLARCH_BASIC_AUTH_HASH:-}
depends_on:
server:
condition: service_healthy
restart: unless-stopped
volumes:
solarch_neo4j_data: