-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.24 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
version: '3.8'
services:
db:
image: postgres:15-alpine
container_name: meal_rec_db
restart: always
environment:
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASS:-1234}
POSTGRES_DB: ${DB_NAME:-DataMyHealthFinal}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
core-service:
build: .
container_name: meal_rec_core
command: uvicorn app.main_core:app --host 0.0.0.0 --port 8000 --reload
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .env
environment:
DB_HOST: db
depends_on:
- db
chatbot-service:
build: .
container_name: meal_rec_chatbot
command: uvicorn app.main_chatbot:app --host 0.0.0.0 --port 8001 --reload
volumes:
- .:/app
ports:
- "8001:8001"
env_file:
- .env
environment:
DB_HOST: db
depends_on:
- db
search-service:
build: .
container_name: meal_rec_search
command: uvicorn app.main_search:app --host 0.0.0.0 --port 8002 --reload
volumes:
- .:/app
ports:
- "8002:8002"
env_file:
- .env
environment:
DB_HOST: db
depends_on:
- db
volumes:
postgres_data: