-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.55 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
services:
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9999:8080
dlt_bigquery:
build:
context: ./dlt_bigquery # Directory containing Dockerfile and dlt file | BigQuery
dockerfile: Dockerfile
volumes:
- ./dlt_bigquery/.dlt/secrets.toml:/app/.dlt/secrets.toml # Define your api keys & variables
- ./dlt_bigquery/.dlt/config.toml:/app/.dlt/config.toml # Define logging
command: ["python", "main.py"]
networks:
- elt_network
# dlt_duckdb: # Use it in case you want to use DuckDB instead of BigQuery
# build:
# context: ./dlt_duckdb # Directory containing Dockerfile and dlt file | DuckDB
# dockerfile: Dockerfile
# volumes:
# - ./dlt_duckdb/.dlt/secrets.toml:/app/.dlt/secrets.toml # Define your api keys & variables
# - ./dlt_duckdb/.dlt/config.toml:/app/.dlt/config.toml # Define logging
# command: ["python", "main.py"] # For clarity and flexibility
# networks:
# - elt_network
dbt:
image: ghcr.io/dbt-labs/dbt-bigquery:1.7.7
entrypoint: ["/bin/sh", "-c"]
working_dir: /dbt
command:
[
"ls -al /dbt && ls -al /keys && dbt deps && dbt run --profiles-dir /root/.dbt --project-dir /dbt",
]
networks:
- elt_network
volumes:
- ${DBT_FILE_PATH}:/keys
- ./dbt_bigquery:/dbt
- ~/.dbt:/root/.dbt
depends_on:
- dlt_bigquery
environment:
- DBT_PROFILE=default
- DBT_TARGET=dev
networks:
elt_network:
driver: bridge