mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-10 15:14:23 -05:00
fix: install instructions
This commit is contained in:
@@ -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=
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -173,4 +173,5 @@ cython_debug/
|
||||
# PyPI configuration file
|
||||
.pypirc
|
||||
|
||||
/certs
|
||||
/certs
|
||||
.claude/
|
||||
6
Makefile
6
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
|
||||
|
||||
@@ -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:
|
||||
@@ -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 . .
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user