-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (47 loc) · 1.28 KB
/
docker-compose.yml
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
# *THIS IS JUST A TEMPLATE! DO NOT USE THIS FILE!*
version: '3.8'
services:
scraping:
build: .
container_name: scraping_container
volumes:
- .:/app # Mounts the current directory to the /app directory in the container
environment:
- ENV=production
depends_on:
- database # Ensure scraping waits for database to start
networks:
- project_network
command: ["python", "src/scraping/scraper_static.py"] # Updated path
database:
image: postgres:13
container_name: db_container
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: scraping_db
volumes:
- db_data:/var/lib/postgresql/data
networks:
- project_network
data_processing:
build: .
container_name: data_processing_container
volumes:
- .:/app
networks:
- project_network
command: ["python", "src/features.py"]
modeling:
build: .
container_name: modeling_container
volumes:
- .:/app
networks:
- project_network
command: ["python", "src/modeling/train.py"]
networks:
project_network:
volumes:
db_data:
# *THIS IS JUST A TEMPLATE! DO NOT USE THIS FILE!*