Skip to content

Commit

Permalink
Use env variables for Airflow postgres instance
Browse files Browse the repository at this point in the history
  • Loading branch information
VMois committed Apr 1, 2024
1 parent 166f48d commit 446800c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
# Env file
.env

# Airflow
logs/

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Expand Up @@ -39,9 +39,9 @@ services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: salus
POSTGRES_PASSWORD: salus123 # for testing only
POSTGRES_DB: airflow
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${AIRFLOW_DB_NAME}
volumes:
- ./airflow_data:/var/lib/postgresql/data
healthcheck:
Expand Down
3 changes: 3 additions & 0 deletions example.env
@@ -0,0 +1,3 @@
POSTGRES_USER=salus
POSTGRES_PASSWORD=salus123
AIRFLOW_DB_NAME=airflow

0 comments on commit 446800c

Please sign in to comment.