Skip to content

Commit

Permalink
add second postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkisse committed Jun 26, 2024
1 parent 51f8053 commit 8b2ce46
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docker-compose/airflow/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ x-airflow-common:
condition: service_healthy
postgres:
condition: service_healthy
pgtracking:
condition: service_healthy

services:
postgres:
Expand All @@ -71,7 +73,7 @@ services:
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
ports:
- 5432:5432
- 5433:5432
volumes:
- postgres-db-volume:/var/lib/postgresql/data
healthcheck:
Expand All @@ -80,6 +82,25 @@ services:
retries: 5
restart: always


pgtracking:
image: postgres:13
container_name: pgtracking
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
ports:
- 5432:5432
volumes:
- postgres-db-volume2:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "airflow"]
interval: 5s
retries: 5
restart: always


adminer:
image: adminer
mem_limit: 256M
Expand Down Expand Up @@ -162,4 +183,5 @@ services:
- 8081:8081

volumes:
postgres-db-volume:
postgres-db-volume:
postgres-db-volume2:

0 comments on commit 8b2ce46

Please sign in to comment.