-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (88 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
92 lines (88 loc) · 2.41 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- OPENAI_API_KEY
- HF_TOKEN=${HF_TOKEN}
- NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687}
- NEO4J_USER=${NEO4J_USER:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-password}
ports:
- "8000:8000"
volumes:
- ./backend:/app
tty: true
restart: unless-stopped
networks:
- datadetox-network
dns:
- 8.8.8.8
- 8.8.4.4
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
# Frontend runs in browser, so it needs to connect to localhost:8000 (the host machine)
- VITE_API_URL=http://localhost:8000
ports:
- "3000:3000"
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
- backend
restart: unless-stopped
networks:
- datadetox-network
# Mount source code for hot reload in development
volumes:
- ./frontend:/app
- /app/node_modules
# neo4j:
# image: neo4j:5.15-community
# ports:
# - "7474:7474" # HTTP
# - "7687:7687" # Bolt
# environment:
# - NEO4J_AUTH=neo4j/password # Change in production!
# - NEO4J_PLUGINS=["apoc"] # APOC for graph procedures
# - NEO4J_dbms_memory_heap_max__size=2G
# volumes:
# - ./docker-volumes/neo4j:/data
# - ./docker-volumes/neo4j/logs:/logs
# - ./docker-volumes/neo4j/import:/var/lib/neo4j/import
# networks:
# - datadetox-network
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "password", "RETURN 1"]
# interval: 10s
# timeout: 5s
# retries: 5
model-lineage-scraper:
build:
context: ./model-lineage
dockerfile: Dockerfile
volumes:
- ./model-lineage:/app
- ./data/model-lineage:/app/data/model-lineage
- ./.dvc:/app/.dvc # DVC config
- .:/workspace # Mount project root for Git access (DVC requires Git)
# depends_on:
# neo4j:
# condition: service_healthy
environment:
- HF_TOKEN
- NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687}
- NEO4J_USER=${NEO4J_USER:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-password}
networks:
- datadetox-network
tty: true
stdin_open: true
restart: "no" # Don't auto-restart batch jobs
networks:
datadetox-network:
driver: bridge