-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.12 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
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: ../docker/frontend.Dockerfile
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000
- NEXT_PUBLIC_WS_URL=ws://backend:8000/ws
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: ../docker/backend.Dockerfile
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- postgres
- neo4j
- redis
volumes:
- ./ml/models:/app/ml/models:ro
postgres:
image: timescale/timescaledb:latest-pg16
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
neo4j:
image: neo4j:5-community
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: ${NEO4J_USER}/${NEO4J_PASSWORD}
volumes:
- neo4j_data:/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
postgres_data:
neo4j_data: