-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathdocker-compose.yaml
41 lines (37 loc) · 959 Bytes
/
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
version: '3'
services:
source_postgres:
image: postgres:15
ports:
- '5433:5432'
networks:
- elt_network
environment:
POSTGRES_DB: source_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
volumes:
- ./source_db_init/init.sql:/docker-entrypoint-initdb.d/init.sql
destination_postgres:
image: postgres:15
ports:
- '5434:5432'
networks:
- elt_network
environment:
POSTGRES_DB: destination_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
elt_script:
build:
context: ./elt_script # Directory containing the Dockerfile and elt_script.py
dockerfile: Dockerfile # Name of the Dockerfile, if it's something other than "Dockerfile", specify here
command: ['python', 'elt_script.py']
networks:
- elt_network
depends_on:
- source_postgres
- destination_postgres
networks:
elt_network:
driver: bridge