-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (122 loc) · 3.88 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: external-services
x-logging: &logging
driver: "json-file"
options:
max-size: 10m
max-file: "2"
services:
airbyte-db:
image: postgres:${AIRBYTE_POSTGRES_VERSION:-14.7}
container_name: airbyte-db
hostname: airbyte-db
volumes:
- airbyte-db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${AIRBYTE_POSTGRES_USER:-airbyte}
- POSTGRES_PASSWORD=${AIRBYTE_POSTGRES_PASSWORD:-airbyte}
- POSTGRES_DB=${AIRBYTE_POSTGRES_DB:-airbyte}
- POSTGRES_PORT=${AIRBYTE_POSTGRES_PORT:-5432}
ports:
- ${AIRBYTE_POSTGRES_PORT_HOST:-5440}:${AIRBYTE_POSTGRES_PORT:-5432}
restart: on-failure
networks:
superside:
aliases:
- airbyte-db
healthcheck:
test: ["CMD", "pg_isready", "-U", "${AIRBYTE_POSTGRES_USER:-airbyte}"]
interval: 5s
retries: 5
airflow-db:
image: postgres:${AIRFLOW_POSTGRES_VERSION:-14.7}
container_name: airflow-db
hostname: airflow-db
volumes:
- airflow-db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${AIRFLOW_POSTGRES_USER:-airflow}
- POSTGRES_PASSWORD=${AIRFLOW_POSTGRES_PASSWORD:-airflow}
- POSTGRES_DB=${AIRFLOW_POSTGRES_DB:-airflow}
- POSTGRES_PORT=${AIRFLOW_POSTGRES_PORT:-5432}
ports:
- ${AIRFLOW_POSTGRES_PORT_HOST:-5450}:${AIRFLOW_POSTGRES_PORT:-5432}
restart: on-failure
networks:
superside:
aliases:
- airflow-db
healthcheck:
test: ["CMD", "pg_isready", "-U", "${AIRFLOW_POSTGRES_USER:-airflow}"]
interval: 5s
retries: 5
clients-db:
image: postgres:${CLIENTS_POSTGRES_VERSION:-14.7}
container_name: clients-db
hostname: clients-db
volumes:
- clients-volume:/var/lib/postgresql/data
- ./scripts/clients_postgres_init.sh:/docker-entrypoint-initdb.d/postgres_init.sh
- ./source_data/engagement_metrics_raw.csv:/docker-entrypoint-initdb.d/source_data/engagement_metrics_raw.csv
environment:
- POSTGRES_USER=${CLIENTS_POSTGRES_USER:-clients}
- POSTGRES_PASSWORD=${CLIENTS_POSTGRES_PASSWORD:-clients}
- POSTGRES_DB=${CLIENTS_POSTGRES_DB:-clients}
- POSTGRES_PORT=${CLIENTS_POSTGRES_PORT:-5432}
ports:
- ${CLIENTS_POSTGRES_PORT_HOST:-5460}:${CLIENTS_POSTGRES_PORT:-5432}
restart: on-failure
networks:
superside:
aliases:
- clients-db
healthcheck:
test: ["CMD", "pg_isready", "-U", "${CLIENTS_POSTGRES_USER:-clients}"]
interval: 5s
retries: 5
warehouse:
image: postgres:${WAREHOUSE_POSTGRES_VERSION:-14.7}
container_name: warehouse
hostname: warehouse
volumes:
- warehouse-volume:/var/lib/postgresql/data
- ./scripts/warehouse_postgres_init.sh:/docker-entrypoint-initdb.d/postgres_init.sh
environment:
- POSTGRES_USER=${WAREHOUSE_POSTGRES_USER:-warehouse}
- POSTGRES_PASSWORD=${WAREHOUSE_POSTGRES_PASSWORD:-warehouse}
- POSTGRES_DB=${WAREHOUSE_POSTGRES_DB:-warehouse}
- POSTGRES_PORT=${WAREHOUSE_POSTGRES_PORT:-5432}
ports:
- ${WAREHOUSE_POSTGRES_PORT_HOST:-5470}:${WAREHOUSE_POSTGRES_PORT:-5432}
restart: on-failure
networks:
superside:
aliases:
- warehouse
healthcheck:
test: ["CMD", "pg_isready", "-U", "${WAREHOUSE_POSTGRES_USER:-warehouse}"]
interval: 5s
retries: 5
registry:
image: registry:${REGISTRY_VERSION:-2}
container_name: ${REGISTRY_SERVICE_NAME:-registry}
hostname: ${REGISTRY_SERVICE_NAME:-registry}
volumes:
- registry:/var/lib/registry
restart: always
logging: *logging
networks:
superside:
aliases:
- ${REGISTRY_SERVICE_NAME:-registry}
ports:
- ${REGISTRY_PORT:-5000}:5000
volumes:
airbyte-db-volume:
airflow-db-volume:
clients-volume:
warehouse-volume:
registry:
networks:
superside:
name: ${PROJECT_NAME:-superside}
driver: bridge