-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (39 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (39 loc) · 847 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: posture_guardian
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:8-alpine
ports:
- "6379:6379"
ml-engine:
build: ./ml-engine
ports:
- "8000:8000"
environment:
REDIS_URL: redis://redis:6379
depends_on:
- redis
backend:
build: ./backend
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/posture_guardian
SPRING_DATASOURCE_USERNAME: pguser
SPRING_DATASOURCE_PASSWORD: pgpass
REDIS_HOST: redis
depends_on:
- postgres
- redis
- ml-engine
volumes:
postgres_data: