-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathcompose.yaml
More file actions
26 lines (25 loc) · 579 Bytes
/
Copy pathcompose.yaml
File metadata and controls
26 lines (25 loc) · 579 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
services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ./postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql
dbt:
build: ./dbt
environment:
- DBT_PROFILES_DIR=/dbt
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./dbt:/dbt
working_dir: /dbt
depends_on:
- postgres