-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (35 loc) · 949 Bytes
/
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
version: "3.9"
services:
postgres:
restart: always
container_name: postgres-db
image: postgres:latest
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "dbtDB"
ports:
- "5432:5432"
volumes:
- ./database:/var/lib/posgresql/data
- ./data/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./data/visits.csv:/var/lib/postgresql/files/visits.csv
- ./data/cards.csv:/var/lib/postgresql/files/cards.csv
- ./data/cards.csv:/var/lib/postgresql/files/dop_info_date.csv
- ./data/cards.csv:/var/lib/postgresql/files/dop_info_case_ump.csv
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d dbtDB"]
interval: 3s
timeout: 5s
retries: 5
dbt:
container_name: dbt
build: .
image: dbt-app
volumes:
- ./:/usr/src/dbt
depends_on:
- postgres
networks:
default:
name: dbt-net