Update docker-compose.yaml
This commit is contained in:
parent
02be95b52c
commit
0e42fd07c0
1 changed files with 2 additions and 6 deletions
|
|
@ -2,8 +2,6 @@ services:
|
||||||
db:
|
db:
|
||||||
container_name: postgres_container
|
container_name: postgres_container
|
||||||
image: postgres:15.15
|
image: postgres:15.15
|
||||||
ports:
|
|
||||||
- 5000:5432
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
|
@ -29,8 +27,6 @@ services:
|
||||||
airflow:
|
airflow:
|
||||||
container_name: airflow_container
|
container_name: airflow_container
|
||||||
image: apache/airflow:3.1.3
|
image: apache/airflow:3.1.3
|
||||||
ports:
|
|
||||||
- ${AIRFLOW_PORT}:8080
|
|
||||||
environment:
|
environment:
|
||||||
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
||||||
AIRFLOW__WEBSERVER__DEFAULT_USER_USERNAME: ${AIRFLOW_ADMIN_USER}
|
AIRFLOW__WEBSERVER__DEFAULT_USER_USERNAME: ${AIRFLOW_ADMIN_USER}
|
||||||
|
|
@ -52,9 +48,9 @@ services:
|
||||||
bash -c "
|
bash -c "
|
||||||
airflow db migrate &&
|
airflow db migrate &&
|
||||||
mkdir -p /opt/airflow/dags &&
|
mkdir -p /opt/airflow/dags &&
|
||||||
ln -s /opt/airflow/gitrepo/repo/dags/* /opt/airflow/dags/ &&
|
ln -s /opt/airflow/gitrepo/repo/airflow/airflow/dags/* /opt/airflow/dags/ &&
|
||||||
airflow scheduler &
|
airflow scheduler &
|
||||||
exec airflow webserver
|
exec airflow webserver --port 3000
|
||||||
"
|
"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue