Skip to content

Instantly share code, notes, and snippets.

@akki
Last active March 2, 2020 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akki/cd89c9caff5bf19454cdf913ceb59c32 to your computer and use it in GitHub Desktop.
Save akki/cd89c9caff5bf19454cdf913ceb59c32 to your computer and use it in GitHub Desktop.
Docker-Swarm-Operator-for-Airflow-blog
version: '3'
services:
postgres:
image: postgres:9.6-alpine
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=test
pod:
image: akkidx/airflow:blog1
depends_on:
- postgres
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgres://test:test@postgres/test
- AIRFLOW__CORE__EXECUTOR=LocalExecutor
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "18080:18080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment