diff --git a/docker-compose/airflow/docker-compose.yml b/docker-compose/airflow/docker-compose.yml index d9b6f1f0..f1c979c9 100644 --- a/docker-compose/airflow/docker-compose.yml +++ b/docker-compose/airflow/docker-compose.yml @@ -62,6 +62,8 @@ x-airflow-common: condition: service_healthy postgres: condition: service_healthy + pgtracking: + condition: service_healthy services: postgres: @@ -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: @@ -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 @@ -162,4 +183,5 @@ services: - 8081:8081 volumes: - postgres-db-volume: \ No newline at end of file + postgres-db-volume: + postgres-db-volume2: \ No newline at end of file