-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1009 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1009 Bytes
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
services:
postgres:
image: postgres:16
container_name: sql_data_postgres
restart: unless-stopped
environment:
POSTGRES_DB: sql_data_engineering
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "${PG_HOST_PORT:-5433}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d sql_data_engineering"]
interval: 10s
timeout: 5s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
pipeline:
image: postgres:16
depends_on:
postgres:
condition: service_healthy
working_dir: /workspace
volumes:
- ./:/workspace
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: sql_data_engineering
DB_USER: postgres
DB_PASSWORD: postgres
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/sql_data_engineering
command: ["bash", "-lc", "chmod +x ./run_all.sh && ./run_all.sh"]
profiles: ["run"]
volumes:
postgres_data: