-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 924 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 924 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
46
47
version: "3.9"
services:
# Service PostgreSQL
db:
image: postgres:15
restart: always
ports:
- "5433:5432"
environment:
POSTGRES_USER: USER
POSTGRES_PASSWORD: 123
POSTGRES_DB: DATABASE
volumes:
- postgres_data:/var/lib/postgresql/data
# Service FastAPI
app:
build: .
ports:
- "8001:8000"
restart: always
depends_on:
- db
environment:
HOST: db
PORT: 5432
DATABASE: DATABASE
USER: USER
PASSWORD: 123
volumes:
- .:/app
command: sh -c "sleep 10 && uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
# Service Frontend
frontend:
build: C:/Users/hp/Desktop/Plateforme-d-Orchestration-IA-Frontend/frontend
ports:
- "3001:3000"
restart: always
depends_on:
- app
environment:
NEXT_PUBLIC_API_URL: "http://localhost:8001"
volumes:
postgres_data: