-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
60 lines (54 loc) · 1.4 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
version: "3.9"
services:
trino:
hostname: trino
image: 'trinodb/trino:358'
ports:
- '8080:8080'
volumes:
- ./trino/etc:/usr/lib/trino/etc:ro
- ./trino/catalog:/etc/trino/catalog
networks:
- trino-network
customersdb:
image: postgres:10
volumes:
- ./customersdb/init-customers.sql:/docker-entrypoint-initdb.d/init.sql
- ./customersdb/raw_customers.csv:/home/dump/raw_customers.csv
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "15432:5432"
networks:
- trino-network
ordersdb:
image: postgres:10
volumes:
- ./ordersdb/init-orders.sql:/docker-entrypoint-initdb.d/init.sql
- ./ordersdb/raw_orders.csv:/home/dump/raw_orders.csv
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "25432:5432"
networks:
- trino-network
paymentsdb:
image: postgres:10
volumes:
- ./paymentsdb/init-payments.sql:/docker-entrypoint-initdb.d/init.sql
- ./paymentsdb/raw_payments.csv:/home/dump/raw_payments.csv
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "35432:5432"
networks:
- trino-network
networks:
trino-network:
driver: bridge