Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix: install instructions

dextmorgn46a21327401d
diff --git a/.env.example b/.env.example
index aa6db3d4..9c93f57a 100644
--- a/.env.example
+++ b/.env.example
@@ -4,7 +4,10 @@ NEO4J_URI_BOLT=bolt://neo4j:7687
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=password
VITE_API_URL=http://127.0.0.1:5001
-DATABASE_URL=postgresql://flowsint:flowsint@localhost:5433/flowsint
+# For Docker: use 'postgres' hostname and internal port 5432
+DATABASE_URL=postgresql://flowsint:flowsint@postgres:5432/flowsint
+# For local development (outside Docker): use localhost:5433
+# DATABASE_URL=postgresql://flowsint:flowsint@localhost:5433/flowsint
HIBP_API_KEY=
ETHERSCAN_API_KEY=
WHOXY_API_KEY=
diff --git a/.gitignore b/.gitignore
index 8e7c4b4c..5f4442ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -173,4 +173,5 @@ cython_debug/
# PyPI configuration file
.pypirc
-/certs
\ No newline at end of file
+/certs
+.claude/
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 1753f24e..0dc235e2 100644
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,10 @@ dev:
$(MAKE) run
prod:
+ # temporary
$(MAKE) check-env
- docker compose -f docker-compose.prod.yml up -d --build
+ $(MAKE) install
+ $(MAKE) run
check-env:
@echo "🔎 Checking .env files..."
@@ -36,7 +38,7 @@ install:
exit 1; \
fi
poetry config virtualenvs.in-project true --local
- poetry env use python3.12
+ # poetry env use python3.12
docker compose up -d postgres redis neo4j
poetry install
cd $(PROJECT_ROOT)/flowsint-core && poetry install
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
deleted file mode 100644
index 9d89bd5b..00000000
--- a/docker-compose.prod.yml
+++ /dev/null
@@ -1,92 +0,0 @@
-name: flowsint
-services:
- flowsint_api:
- build:
- context: ./flowsint-api
- dockerfile: Dockerfile
- target: prod
- env_file: .env
- ports:
- - "5001:5001"
- depends_on:
- - postgres
- - redis
- - neo4j
- celery:
- build:
- context: ./flowsint-core
- dockerfile: Dockerfile
- env_file: .env
- depends_on:
- - redis
- - postgres
- # PostgreSQL database
- postgres:
- image: postgres:15
- container_name: flowsint-postgres
- restart: always
- environment:
- POSTGRES_USER: flowsint
- POSTGRES_PASSWORD: flowsint
- POSTGRES_DB: flowsint
- ports:
- - "5433:5432"
- volumes:
- - pg_data:/var/lib/postgresql/data
- networks:
- - flowsint_network
-
- # Redis for Celery & cache
- redis:
- image: redis:alpine
- container_name: redis-cache
- ports:
- - "6379:6379"
- networks:
- - flowsint_network
-
- neo4j:
- image: neo4j:5
- container_name: flowsint-neo4j
- ports:
- - "7474:7474" # Web UI
- - "7687:7687" # Bolt
- environment:
- - NEO4J_AUTH=${NEO4J_USERNAME}/${NEO4J_PASSWORD}
- - NEO4J_PLUGINS=["apoc"]
- - NEO4J_apoc_export_file_enabled=true
- - NEO4J_apoc_import_file_enabled=true
- - NEO4J_apoc_import_file_use__neo4j__config=true
- volumes:
- - neo4j_data:/data
- - neo4j_logs:/logs
- - neo4j_import:/var/lib/neo4j/import
- - neo4j_plugins:/plugins
- restart: unless-stopped
- networks:
- - flowsint_network
-
- flowsint-app:
- build:
- context: ./flowsint-app
- dockerfile: Dockerfile
- container_name: flowsint-app
- ports:
- - "5173:80"
- depends_on:
- - flowsint_api
- networks:
- - flowsint_network
- restart: unless-stopped
-
-networks:
- flowsint_network:
- name: flowsint_network
- driver: bridge
-
-volumes:
- pg_data:
- neo4j_data:
- neo4j_logs:
- neo4j_import:
- neo4j_plugins:
diff --git a/flowsint-app/Dockerfile b/flowsint-app/Dockerfile
index 69e48daf..956cd3f7 100644
--- a/flowsint-app/Dockerfile
+++ b/flowsint-app/Dockerfile
@@ -5,7 +5,7 @@ WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
-RUN npm install
+RUN npm install --legacy-peer-deps
COPY . .
diff --git a/flowsint-app/Dockerfile.dev b/flowsint-app/Dockerfile.dev
index 36b80df3..7bcef379 100644
--- a/flowsint-app/Dockerfile.dev
+++ b/flowsint-app/Dockerfile.dev
@@ -4,7 +4,7 @@ WORKDIR /app
# Copy package files
COPY package*.json ./
-RUN yarn install
+RUN npm install --legacy-peer-deps
# Copy source code
COPY . .
@@ -13,4 +13,4 @@ COPY . .
EXPOSE 5173
# Run development server with host flag to make it accessible from outside container
-CMD ["yarn", "dev", "--host", "0.0.0.0"]
+CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]