updated gitignore
This commit is contained in:
parent
d76a55020f
commit
34288dcbbe
2 changed files with 37 additions and 1 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -14,4 +14,11 @@ __pycache__/
|
|||
.vscode/
|
||||
|
||||
#Environment files
|
||||
.env
|
||||
.env
|
||||
|
||||
#Airflow files
|
||||
airflow/logs/
|
||||
airflow/__pycache__/
|
||||
airflow/airflow.db
|
||||
airflow/plugins/__pycache__/
|
||||
postgres/data/
|
||||
|
|
|
|||
29
airflow/docker-compose.yaml
Normal file
29
airflow/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
services:
|
||||
db:
|
||||
container_name: postgres_container
|
||||
image: postgres:15.15
|
||||
ports:
|
||||
- 5000:5432
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
af:
|
||||
container_name: airflow_container
|
||||
image: apache/airflow:3.1.3
|
||||
ports:
|
||||
- ${AIRFLOW_PORT}:8080
|
||||
environment:
|
||||
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@db:5432/airflow
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- ./airflow/dags:/opt/airflow/dags
|
||||
command: >
|
||||
bash -c "airflow db migrate && airflow standalone"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Loading…
Reference in a new issue