forked from tomerten/dv_tutorial_dbt_postgress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.16 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
55
56
57
58
59
60
61
62
63
64
version: '3.9'
networks:
db-server-network:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"
services:
db1:
image: 'postgres:latest'
hostname: sqlNode1
ports:
- "5432:5432"
env_file:
- .env
networks:
db-server-network:
ipv4_address: 172.16.238.11
aliases:
- sqlNode1
volumes:
- ./db-data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
pgadmin:
image: dpage/pgadmin4
hostname: pgadmin
ports:
- "15433:80"
env_file:
- .env
depends_on:
- db1
networks:
db-server-network:
ipv4_address: 172.16.238.12
aliases:
- sqlAdmin
volumes:
- ./pgadmin-data:/var/lib/pgadmin
dbt:
build:
context: .
dockerfile: PythonDbtDev.Dockerfile
environment:
DBT_PROFILES_DIR: /dbt
DBT_PROFILE: sqlserver
DBT_HOST: db
DBT_PORT: 1433
DBT_USER: sa
DBT_PASS: YourStrong!Passw0rd
DBT_DB_NAME: dbt
volumes:
- .:/dbt
networks:
- db-server-network
# networks:
# dbt_network:
# driver: bridge