-
Notifications
You must be signed in to change notification settings - Fork 293
Add Airbyte template for data pipeline deployment #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
7
commits into
canary
Choose a base branch
from
copilot/add-airbyte-template
base: canary
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+173
−0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
624f7fa
Initial plan
Copilot 4067b98
Add Airbyte template with complete deployment setup
Copilot 1a81ad9
Make database and storage credentials configurable for security
Copilot 52d2fc6
Make temporal database password configurable and document Docker sock…
Copilot 9a350d8
Update docker-compose.yml
Siumauricio db877e7
Fix Temporal DB driver and add missing STORAGE_TYPE environment variable
Copilot bda2d4f
Update docker-compose.yml
Siumauricio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| version: "3.8" | ||
|
|
||
| services: | ||
| # PostgreSQL database for Airbyte metadata | ||
| db: | ||
| image: airbyte/db:1.7.8 | ||
| restart: unless-stopped | ||
| environment: | ||
| POSTGRES_USER: docker | ||
| POSTGRES_PASSWORD: ${AIRBYTE_DB_PASSWORD} | ||
| POSTGRES_DB: airbyte | ||
| volumes: | ||
| - db:/var/lib/postgresql/data | ||
|
|
||
| # PostgreSQL database for Temporal | ||
| temporal-db: | ||
| image: postgres:13-alpine | ||
| restart: unless-stopped | ||
| environment: | ||
| POSTGRES_USER: temporal | ||
| POSTGRES_PASSWORD: ${TEMPORAL_DB_PASSWORD} | ||
| POSTGRES_DB: temporal | ||
| volumes: | ||
| - temporal-db:/var/lib/postgresql/data | ||
|
|
||
| # Temporal workflow engine | ||
| temporal: | ||
| image: temporalio/auto-setup:1.24.2 | ||
| restart: unless-stopped | ||
| depends_on: | ||
| - temporal-db | ||
| environment: | ||
| DB: postgres12 | ||
| DB_PORT: 5432 | ||
| POSTGRES_USER: temporal | ||
| POSTGRES_PWD: ${TEMPORAL_DB_PASSWORD} | ||
| POSTGRES_SEEDS: temporal-db | ||
| DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development-sql.yaml | ||
|
|
||
| # MinIO for S3-compatible storage | ||
| minio: | ||
| image: minio/minio:RELEASE.2024-11-07T00-52-20Z | ||
| restart: unless-stopped | ||
| environment: | ||
| MINIO_ROOT_USER: minio | ||
| MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} | ||
| volumes: | ||
| - minio:/data | ||
| command: server /data --console-address ":9001" | ||
|
|
||
| # Airbyte Server (API) | ||
| server: | ||
| image: airbyte/server:1.7.8 | ||
| restart: unless-stopped | ||
| depends_on: | ||
| - db | ||
| - temporal | ||
| environment: | ||
| DATABASE_USER: docker | ||
| DATABASE_PASSWORD: ${AIRBYTE_DB_PASSWORD} | ||
| DATABASE_DB: airbyte | ||
| DATABASE_URL: jdbc:postgresql://db:5432/airbyte | ||
| CONFIG_DATABASE_USER: docker | ||
| CONFIG_DATABASE_PASSWORD: ${AIRBYTE_DB_PASSWORD} | ||
| CONFIG_DATABASE_URL: jdbc:postgresql://db:5432/airbyte | ||
| WORKSPACE_ROOT: /data | ||
| TRACKING_STRATEGY: segment | ||
| WEBAPP_URL: http://webapp:80 | ||
| TEMPORAL_HOST: temporal:7233 | ||
| LOG_LEVEL: INFO | ||
| STORAGE_TYPE: MINIO | ||
| S3_LOG_BUCKET: airbyte-dev-logs | ||
| S3_LOG_BUCKET_REGION: us-east-1 | ||
| S3_PATH_STYLE_ACCESS: "true" | ||
| AWS_ACCESS_KEY_ID: minio | ||
| AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD} | ||
| S3_MINIO_ENDPOINT: http://minio:9000 | ||
| STATE_STORAGE_MINIO_BUCKET_NAME: airbyte-state-storage | ||
| STATE_STORAGE_MINIO_ENDPOINT: http://minio:9000 | ||
| STATE_STORAGE_MINIO_ACCESS_KEY: minio | ||
| STATE_STORAGE_MINIO_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD} | ||
| volumes: | ||
| - workspace:/data | ||
|
|
||
| # Airbyte Worker (job execution) | ||
| worker: | ||
| image: airbyte/worker:1.7.8 | ||
| restart: unless-stopped | ||
| depends_on: | ||
| - db | ||
| - temporal | ||
| environment: | ||
| DATABASE_USER: docker | ||
| DATABASE_PASSWORD: ${AIRBYTE_DB_PASSWORD} | ||
| DATABASE_DB: airbyte | ||
| DATABASE_URL: jdbc:postgresql://db:5432/airbyte | ||
| CONFIG_DATABASE_USER: docker | ||
| CONFIG_DATABASE_PASSWORD: ${AIRBYTE_DB_PASSWORD} | ||
| CONFIG_DATABASE_URL: jdbc:postgresql://db:5432/airbyte | ||
| WORKSPACE_ROOT: /data | ||
| TRACKING_STRATEGY: segment | ||
| WEBAPP_URL: http://webapp:80 | ||
| TEMPORAL_HOST: temporal:7233 | ||
| LOG_LEVEL: INFO | ||
| STORAGE_TYPE: MINIO | ||
| S3_LOG_BUCKET: airbyte-dev-logs | ||
| S3_LOG_BUCKET_REGION: us-east-1 | ||
| S3_PATH_STYLE_ACCESS: "true" | ||
| AWS_ACCESS_KEY_ID: minio | ||
| AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD} | ||
| S3_MINIO_ENDPOINT: http://minio:9000 | ||
| STATE_STORAGE_MINIO_BUCKET_NAME: airbyte-state-storage | ||
| STATE_STORAGE_MINIO_ENDPOINT: http://minio:9000 | ||
| STATE_STORAGE_MINIO_ACCESS_KEY: minio | ||
| STATE_STORAGE_MINIO_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD} | ||
| volumes: | ||
| - workspace:/data | ||
| - /var/run/docker.sock:/var/run/docker.sock | ||
|
|
||
| # Airbyte Webapp (UI) | ||
| webapp: | ||
| image: airbyte/webapp:1.7.8 | ||
| restart: unless-stopped | ||
| depends_on: | ||
| - server | ||
| environment: | ||
| AIRBYTE_VERSION: 1.7.8 | ||
| API_URL: http://server:8001/api/v1/ | ||
| TRACKING_STRATEGY: segment | ||
| INTERNAL_API_HOST: server:8001 | ||
|
|
||
| volumes: | ||
| db: | ||
| temporal-db: | ||
| minio: | ||
| workspace: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [variables] | ||
| main_domain = "${domain}" | ||
| db_password = "${password:32}" | ||
| minio_password = "${password:32}" | ||
| temporal_db_password = "${password:32}" | ||
|
|
||
| [config] | ||
| env = [ | ||
| "AIRBYTE_DB_PASSWORD=${db_password}", | ||
| "MINIO_ROOT_PASSWORD=${minio_password}", | ||
| "TEMPORAL_DB_PASSWORD=${temporal_db_password}" | ||
| ] | ||
| # Note: The Airbyte worker service requires a Docker socket mount at /var/run/docker.sock. | ||
| # This mount is intentionally configured in docker-compose.yml rather than via config.mounts. | ||
| mounts = [] | ||
|
|
||
| [[config.domains]] | ||
| serviceName = "webapp" | ||
| port = 80 | ||
| host = "${main_domain}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Docker socket mount required by the worker service (/var/run/docker.sock) should be documented here or in a comment. While this mount is intentionally handled in docker-compose.yml rather than template.toml, it would be helpful to note this requirement for users reviewing the configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added documentation comment in commit 52d2fc6 explaining that the Docker socket mount is intentionally configured in docker-compose.yml rather than via config.mounts.