-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (38 loc) · 935 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (38 loc) · 935 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
services:
postgres-db:
image: postgres:13
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=germany_cars_db
volumes:
- "./postgres_data:/var/lib/postgresql/data:rw"
ports:
- "5432:5432"
data-ingest:
image: data-ingest:latest
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=germany_cars_db
- POSTGRES_PORT=5432
- POSTGRES_HOST=postgres-db
- DATA_PATH=./data
volumes:
- "./data:/app/data:rw"
depends_on:
- postgres-db
train-model:
image: train-model:latest
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=germany_cars_db
- POSTGRES_PORT=5432
- POSTGRES_HOST=postgres-db
working_dir: /app
volumes:
- "./artifacts:/app/artifacts:rw"
- "./data:/app/data"
depends_on:
- data-ingest