-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.26 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
services:
traffic-data:
build:
context: .
dockerfile: ./traffic-data/Dockerfile
env_file:
- ./.env
volumes:
- ./traffic-data:/app/traffic-data
- ./.env:/app/.env
- shared-data:/app/traffic-data/files
working_dir: /app/traffic-data
command: python run_pipeline.py
website-analytics:
build:
context: .
dockerfile: ./website-analytics/Dockerfile
env_file:
- ./.env
volumes:
- ./website-analytics:/app/website-analytics
- ./.env:/app/.env
- shared-data:/app/traffic-data/files
working_dir: /app/website-analytics
depends_on:
traffic-data:
condition: service_completed_successfully
command: sh -c "dbt deps && dbt build"
reporting:
build:
context: .
dockerfile: ./reporting/Dockerfile
env_file:
- ./.env
volumes:
- ./.env:/app/.env
- shared-data:/app/traffic-data/files
- reporting-exports:/app/reporting/exports
working_dir: /app/reporting
depends_on:
website-analytics:
condition: service_completed_successfully
command: python model_export.py # sh -c "python model_export.py && tail -f /dev/null"
# tty: true
# stdin_open: true
volumes:
shared-data:
reporting-exports: