-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose.yml
65 lines (65 loc) · 1.6 KB
/
docker-compose.yml
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
services:
db:
image: neo4j:5.23-community
env_file:
- ".env"
volumes:
- neo4j:/data
- neo4j_logs:/logs
- neo4j_import:/var/lib/neo4j/import
- neo4j_plugins:/plugins
ports:
- "7474:7474" # HTTP port for Neo4j Browser
- "7687:7687" # Bolt port for database access
environment:
- NEO4J_AUTH=neo4j/${GRAPH_PASSWORD:-password}
test-neo4j:
image: neo4j:5.23-community
profiles:
- test
env_file:
- ".env"
environment:
- NEO4J_AUTH=neo4j/test_pwd
ports:
- "7475:7474"
- "7688:7687"
web:
build:
context: ./frontend
args:
NPDI_WEB_PORT: ${NPDI_WEB_PORT:-3000}
volumes:
- ./frontend:/app
# Prevents the host node_modules from clobbering the image's
- /app/node_modules
environment:
NEXT_PUBLIC_API_MODE: real
NEXT_PUBLIC_API_BASE_URL: http://localhost:${NPDI_API_PORT:-5000}/api/v1
ports:
- ${NPDI_WEB_PORT:-3000}:${NPDI_WEB_PORT:-3000}
api:
build:
context: .
dockerfile: ./backend/Dockerfile
args:
NPDI_API_PORT: ${NPDI_API_PORT:-5000}
volumes:
- .:/app
depends_on:
- db
environment:
PYTHONPATH: app/
FLASK_ENV: ${FLASK_ENV:-development}
NEO4J_URI: bolt://db:7687
NEO4J_USERNAME: ${GRAPH_USER:-neo4j}
NEO4J_PASSWORD: ${GRAPH_PASSWORD:-password}
MIXPANEL_TOKEN: ${MIXPANEL_TOKEN:-notset}
WAIT_HOSTS: db:7687
ports:
- ${NPDI_API_PORT:-5000}:${NPDI_API_PORT:-5000}
volumes:
neo4j: {}
neo4j_logs: {}
neo4j_import: {}
neo4j_plugins: {}