forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.workloads.yaml
115 lines (115 loc) · 4.42 KB
/
docker-compose.workloads.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Adds ports to the db and access to the temporal UI for debugging purposes.
# Expected to be used like this:
# VERSION=dev docker compose -f docker-compose.yaml -f docker-compose.debug.yaml up
version: "3.8"
x-logging: &default-logging
options:
max-size: "100m"
max-file: "5"
driver: json-file
services:
workload-api-server:
image: airbyte/workload-api-server:${VERSION}
logging: *default-logging
container_name: workload-api-server
restart: unless-stopped
environment:
- AIRBYTE_ROLE=${AIRBYTE_ROLE:-}
- AIRBYTE_VERSION=${VERSION}
- AIRBYTE_API_HOST=${AIRBYTE_API_HOST}
# This should default to true
- API_AUTHORIZATION_ENABLED=false
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DD_AGENT_HOST=${DD_AGENT_HOST}
- DD_DOGSTATSD_PORT=${DD_DOGSTATSD_PORT}
- FEATURE_FLAG_CLIENT=${FEATURE_FLAG_CLIENT}
- LAUNCHDARKLY_KEY=${LAUNCHDARKLY_KEY}
- LOG_LEVEL=${LOG_LEVEL}
- METRIC_CLIENT=${METRIC_CLIENT}
- MICROMETER_METRICS_ENABLED=${MICROMETER_METRICS_ENABLED}
- MICROMETER_METRICS_STATSD_FLAVOR=${MICROMETER_METRICS_STATSD_FLAVOR}
- MICRONAUT_ENVIRONMENTS=${WORKERS_MICRONAUT_ENVIRONMENTS}
- PUBLISH_METRICS=${PUBLISH_METRICS}
- SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY}
- STATSD_HOST=${STATSD_HOST}
- STATSD_PORT=${STATSD_PORT}
- TEMPORAL_HOST=${TEMPORAL_HOST}
- WORKER_ENVIRONMENT=${WORKER_ENVIRONMENT}
- WORKSPACE_ROOT=${WORKSPACE_ROOT}
ports:
- "8007"
configs:
- flags
volumes:
- workspace:${WORKSPACE_ROOT}
- data:${CONFIG_ROOT}
- ${LOCAL_ROOT}:${LOCAL_ROOT}
- ./configs:/app/configs:ro
networks:
- airbyte_internal
depends_on:
bootloader:
condition: service_completed_successfully
workload-launcher:
image: airbyte/workload-launcher:${VERSION}
logging: *default-logging
container_name: workload-launcher
restart: unless-stopped
environment:
- ACTIVITY_INITIAL_DELAY_BETWEEN_ATTEMPTS_SECONDS=${ACTIVITY_INITIAL_DELAY_BETWEEN_ATTEMPTS_SECONDS}
- ACTIVITY_MAX_ATTEMPT=${ACTIVITY_MAX_ATTEMPT}
- ACTIVITY_MAX_DELAY_BETWEEN_ATTEMPTS_SECONDS=${ACTIVITY_MAX_DELAY_BETWEEN_ATTEMPTS_SECONDS}
- AIRBYTE_ROLE=${AIRBYTE_ROLE:-}
- AIRBYTE_VERSION=${VERSION}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USER=${DATABASE_USER}
- DATA_PLANE_ID=local
- DOCKER_NETWORK=${COMPOSE_PROJECT_NAME}_airbyte_internal
- DOCKER_SOCKET=${DOCKER_SOCKET}
- DEPLOYMENT_MODE=${DEPLOYMENT_MODE}
- DD_AGENT_HOST=${DD_AGENT_HOST}
- DD_DOGSTATSD_PORT=${DD_DOGSTATSD_PORT}
- FEATURE_FLAG_CLIENT=${FEATURE_FLAG_CLIENT}
- INTERNAL_API_HOST=${INTERNAL_API_HOST}
- LAUNCHDARKLY_KEY=${LAUNCHDARKLY_KEY}
- LOCAL_DOCKER_MOUNT=${LOCAL_DOCKER_MOUNT}
- LOCAL_ROOT=${LOCAL_ROOT}
- LOG_LEVEL=${LOG_LEVEL}
- METRIC_CLIENT=${METRIC_CLIENT}
- MICROMETER_METRICS_ENABLED=${MICROMETER_METRICS_ENABLED}
- MICROMETER_METRICS_STATSD_FLAVOR=${MICROMETER_METRICS_STATSD_FLAVOR}
- MICRONAUT_ENVIRONMENTS=${WORKERS_MICRONAUT_ENVIRONMENTS}
- OTEL_COLLECTOR_ENDPOINT=${OTEL_COLLECTOR_ENDPOINT}
- PUBLISH_METRICS=${PUBLISH_METRICS}
- SECRET_PERSISTENCE=${SECRET_PERSISTENCE}
- SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY}
- STATSD_HOST=${STATSD_HOST}
- STATSD_PORT=${STATSD_PORT}
- TEMPORAL_HOST=${TEMPORAL_HOST}
- TRACKING_STRATEGY=${TRACKING_STRATEGY}
- WORKER_ENVIRONMENT=${WORKER_ENVIRONMENT}
- WORKER_LOGS_STORAGE_TYPE=${WORKER_LOGS_STORAGE_TYPE}
- WORKER_STATE_STORAGE_TYPE=${WORKER_STATE_STORAGE_TYPE}
- WORKFLOW_FAILURE_RESTART_DELAY_SECONDS=${WORKFLOW_FAILURE_RESTART_DELAY_SECONDS}
- WORKLOAD_API_HOST=${WORKLOAD_API_URL}
- WORKSPACE_DOCKER_MOUNT=${WORKSPACE_DOCKER_MOUNT}
- WORKSPACE_ROOT=${WORKSPACE_ROOT}
configs:
- flags
volumes:
- ${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock
- workspace:${WORKSPACE_ROOT}
- data:${CONFIG_ROOT}
- ${LOCAL_ROOT}:${LOCAL_ROOT}
- ./configs:/app/configs:ro
networks:
- airbyte_internal
depends_on:
bootloader:
condition: service_completed_successfully
workload-api-server:
condition: service_started
# TODO should be service_healthy