-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (53 loc) · 1.4 KB
/
docker-compose.yaml
File metadata and controls
59 lines (53 loc) · 1.4 KB
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
56
57
58
59
version: "3.9"
services:
postgres-warehouse:
image: "postgres:15.0-bullseye"
container_name: postgres-warehouse
restart: always
ports:
- "${DWH_POSTGRES_PORT}:5432"
environment:
- POSTGRES_DB=${DWH_POSTGRES_DB}
- POSTGRES_USER=${DWH_POSTGRES_USER}
- POSTGRES_PASSWORD=${DWH_POSTGRES_PASSWORD}
volumes:
- warehouse-volume:/var/lib/postgresql/data
dbt:
image: "ghcr.io/dbt-labs/dbt-postgres:1.3.latest"
container_name: dbt
volumes:
- .:/usr/app
- ./dbt/config/profiles.yml:/root/.dbt/profiles.yml
command: ["init", "analytics"]
depends_on:
- postgres-warehouse
metabase-db:
image: "postgres:15.0-bullseye"
container_name: metabase-db
restart: always
ports:
- "${MB_DB_PORT}:5432"
environment:
- POSTGRES_DB=${MB_DB_NAME}
- POSTGRES_USER=${MB_DB_USER}
- POSTGRES_PASSWORD=${MB_DB_PASSWORD}
volumes:
- metabase-db-volume:/var/lib/postgresql/data
metabase:
image: "metabase/metabase:v0.44.5"
container_name: metabase
restart: always
ports:
- "${MB_PORT}:3000"
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=${MB_DB_NAME}
- MB_DB_PORT=5432
- MB_DB_USER=${MB_DB_USER}
- MB_DB_PASS=${MB_DB_PASSWORD}
- MB_DB_HOST=${MB_DB_HOST}
depends_on:
- metabase-db
volumes:
warehouse-volume:
metabase-db-volume: