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:
|
||||
container_name: postgres_container
|
||||
image: postgres:15.15
|
||||
ports:
|
||||
- 5000:5432
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
|
|
@ -29,8 +27,6 @@ services:
|
|||
airflow:
|
||||
container_name: airflow_container
|
||||
image: apache/airflow:3.1.3
|
||||
ports:
|
||||
- ${AIRFLOW_PORT}:8080
|
||||
environment:
|
||||
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
||||
AIRFLOW__WEBSERVER__DEFAULT_USER_USERNAME: ${AIRFLOW_ADMIN_USER}
|
||||
|
|
@ -52,9 +48,9 @@ services:
|
|||
bash -c "
|
||||
airflow db migrate &&
|
||||
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 &
|
||||
exec airflow webserver
|
||||
exec airflow webserver --port 3000
|
||||
"
|
||||
restart: unless-stopped
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue