-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
64 lines (57 loc) · 1.17 KB
/
docker-compose.yaml
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.8'
services:
postgres:
image: postgres:13
container_name: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: dbt_tutorial
volumes:
- postgres-db-volume:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- network
# restart: on-failure
pgadmin:
image: dpage/pgadmin4
restart: always
container_name: pgAdmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@example.com
- PGADMIN_DEFAULT_PASSWORD=123456
- PGADMIN_LISTEN_PORT=5050
ports:
- "5050:5050"
volumes:
- pgadminvolume:/var/lib/pgadmin
depends_on:
- postgres
networks:
- network
dbt-console:
build: shopping_data/.
container_name: dbt
command: [ "/bin/bash" ]
stdin_open: true
tty: true
volumes:
- ./shopping_data/:/app
networks:
- network
elt:
build: load_data/.
container_name: load_data
depends_on:
- postgres
networks:
- network
command: >
/bin/sh -c 'python load_data.py'
networks:
network:
driver: bridge
volumes:
pgadminvolume:
postgres-db-volume: