Skip to content

Commit

Permalink
Merge pull request #97 from vbalalian/refactor-1
Browse files Browse the repository at this point in the history
refactor: group ELT services in one folder
  • Loading branch information
vbalalian committed Mar 3, 2024
2 parents bf7bc1b + da8ef10 commit 28e61f8
Show file tree
Hide file tree
Showing 30 changed files with 65 additions and 11 deletions.
68 changes: 61 additions & 7 deletions compose.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
condition: service_started
db:
condition: service_healthy

web_scraper:
build: ./web_scraping
environment:
Expand All @@ -23,8 +24,9 @@ services:
depends_on:
db:
condition: service_healthy

db:
image: postgres:latest
image: postgres
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
Expand All @@ -39,8 +41,9 @@ services:
interval: 10s
timeout: 5s
retries: 5

minio:
image: minio/minio:latest
image: minio/minio
volumes:
- minio-data:/data
environment:
Expand All @@ -50,8 +53,9 @@ services:
ports:
- 9000:9000
- 9090:9090

minio-setup:
image: minio/mc:latest
image: minio/mc
depends_on:
- minio
entrypoint: >
Expand All @@ -64,14 +68,16 @@ services:
mc admin user add myminio ${MINIO_NEW_USER} ${MINIO_NEW_USER_PASSWORD};
mc admin policy attach myminio readwrite --user=${MINIO_NEW_USER};
"
custom-airbyte-connector:
environment:
- HOST=${HOST}
- AIRBYTE_HOST=http://${HOST}
build:
context: ./custom-airbyte-connector
context: ./extract-load-transform/custom-airbyte-connector
dockerfile: Dockerfile
image: airbyte/source-roman-coins-api:latest
pull_policy: build

airbyte-configurator:
depends_on:
- api
Expand All @@ -80,14 +86,62 @@ services:
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
- MINIO_NEW_USER=${MINIO_NEW_USER}
- MINIO_NEW_USER_PASSWORD=${MINIO_NEW_USER_PASSWORD}
- AIRBYTE_HOST=${HOST}
- AIRBYTE_HOST=http://${HOST}
- AIRBYTE_USERNAME=${AIRBYTE_USERNAME}
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- CONNECTOR_START_DATE=${CONNECTOR_START_DATE}
build:
context: ./airbyte-api-minio-connection
context: ./extract-load-transform/airbyte-api-minio-connection
dockerfile: Dockerfile
pull_policy: build

dagster-webserver:
depends_on:
- db
- airbyte-configurator
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DB_HOST=db
- AIRBYTE_USERNAME=${AIRBYTE_USERNAME}
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- HOST=${HOST}
build:
context: ./extract-load-transform/orchestration
dockerfile: Dockerfile
entrypoint:
- dagster-webserver
- -h
- "0.0.0.0"
- -p
- "3000"
- -w
- workspace.yaml
expose:
- 3000
ports:
- 3000:3000

dagster-daemon:
depends_on:
- db
- airbyte-configurator
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DB_HOST=db
- AIRBYTE_USERNAME=${AIRBYTE_USERNAME}
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- HOST=${HOST}
build:
context: ./extract-load-transform/orchestration
dockerfile: Dockerfile
entrypoint:
- dagster-daemon
- run
restart: on-failure
test_db:
image: postgres:latest
restart: unless-stopped
Expand Down
8 changes: 4 additions & 4 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ services:
environment:
- AIRBYTE_HOST=http://${HOST}
build:
context: ./custom-airbyte-connector
context: ./extract-load-transform/custom-airbyte-connector
dockerfile: Dockerfile
image: airbyte/source-roman-coins-api:latest
pull_policy: build
Expand All @@ -91,7 +91,7 @@ services:
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- CONNECTOR_START_DATE=${CONNECTOR_START_DATE}
build:
context: ./airbyte-api-minio-connection
context: ./extract-load-transform/airbyte-api-minio-connection
dockerfile: Dockerfile
pull_policy: build

Expand All @@ -108,7 +108,7 @@ services:
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- HOST=${HOST}
build:
context: ./orchestration
context: ./extract-load-transform/orchestration
dockerfile: Dockerfile
entrypoint:
- dagster-webserver
Expand Down Expand Up @@ -136,7 +136,7 @@ services:
- AIRBYTE_PASSWORD=${AIRBYTE_PASSWORD}
- HOST=${HOST}
build:
context: ./orchestration
context: ./extract-load-transform/orchestration
dockerfile: Dockerfile
entrypoint:
- dagster-daemon
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 28e61f8

Please sign in to comment.