-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 960 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 960 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
48
49
50
51
services:
web:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://user:password@db:5432/ml_api_db
- SECRET_KEY=your-secret-key-here
volumes:
- .:/app
depends_on:
- db
networks:
- ml-api-network
jupyter:
build:
context: .
dockerfile: docker/Dockerfile.jupyter
ports:
- "8888:8888"
environment:
- DATABASE_URL=postgresql://user:password@db:5432/ml_api_db
volumes:
- .:/app
depends_on:
- db
networks:
- ml-api-network
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ml_api_db
ports:
- "5432:5432"
networks:
- ml-api-network
volumes:
postgres_data:
networks:
ml-api-network:
driver: bridge