Spaces:
Running
Running
| 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 | |