File size: 1,093 Bytes
59abb4f
 
 
 
 
f014957
 
 
 
 
 
6fa287a
 
 
9c55c11
b4e6556
 
59abb4f
6fa287a
 
 
59abb4f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e

log() { echo "[entrypoint] $*"; }

# ── Persistent data dirs β€” pre-create full Neo4j structure ────────────────────
mkdir -p /data/neo4j/data/databases \
         /data/neo4j/data/transactions \
         /data/neo4j/data/dbms \
         /data/neo4j/logs
chown -R neo4j:adm /data/neo4j

# ── First-boot: set initial password ──────────────────────────────────────────
NEO4J_PASS="${NEO4J_PASSWORD:-clinicalmatch2024}"
log "Setting Neo4j initial password..."
neo4j-admin dbms set-initial-password "$NEO4J_PASS" 2>&1 || \
    log "set-initial-password: already initialized, skipping."

# ── Nginx tmp dirs ─────────────────────────────────────────────────────────────
mkdir -p /tmp/nginx-cache /tmp/nginx-body

log "Starting all services via supervisord..."
exec /usr/bin/supervisord -c /app/docker/supervisord.conf