diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index 6febd829d..f02cf4c8f 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -19,6 +19,7 @@ services: - no-new-privileges:true command: ['up'] environment: + - DEPLOY_TYPE=docker-compose - PGHOST=pgsql - PGPORT=5432 - PGUSER=sg @@ -235,6 +236,7 @@ services: - no-new-privileges:true env_file: sourcegraph-uploads.env environment: + - DEPLOY_TYPE=docker-compose - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' volumes: @@ -260,6 +262,7 @@ services: security_opt: - no-new-privileges:true environment: + - DEPLOY_TYPE=docker-compose - 'HOSTNAME=zoekt-webserver-0:6070' - 'SRC_FRONTEND_INTERNAL=http://sourcegraph-frontend-internal:3090' - 'OPENTELEMETRY_DISABLED=false' @@ -285,6 +288,7 @@ services: security_opt: - no-new-privileges:true environment: + - DEPLOY_TYPE=docker-compose - 'HOSTNAME=zoekt-webserver-0:6070' - 'OPENTELEMETRY_DISABLED=false' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' @@ -315,6 +319,7 @@ services: - no-new-privileges:true env_file: sourcegraph-uploads.env environment: + - DEPLOY_TYPE=docker-compose - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' healthcheck: @@ -342,6 +347,7 @@ services: - no-new-privileges:true env_file: sourcegraph-uploads.env environment: + - DEPLOY_TYPE=docker-compose - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' healthcheck: @@ -369,6 +375,7 @@ services: - no-new-privileges:true env_file: sourcegraph-uploads.env environment: + - DEPLOY_TYPE=docker-compose - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' - 'SRC_GIT_SERVERS=gitserver-0:3178' @@ -395,6 +402,7 @@ services: - no-new-privileges:true env_file: sourcegraph-uploads.env environment: + - DEPLOY_TYPE=docker-compose - 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090' - 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' healthcheck: @@ -420,6 +428,8 @@ services: mem_limit: '6g' security_opt: - no-new-privileges:true + environment: + - DEPLOY_TYPE=docker-compose healthcheck: test: "wget -q 'http://127.0.0.1:9238/health' -O /dev/null || exit 1" interval: 5s @@ -717,6 +727,8 @@ services: mem_limit: '1g' security_opt: - no-new-privileges:true + environment: + - DEPLOY_TYPE=docker-compose healthcheck: test: ['CMD', 'curl', '-f', 'http://127.0.0.1:9000/'] interval: 10s diff --git a/docker-compose/executors/executor.docker-compose.yaml b/docker-compose/executors/executor.docker-compose.yaml index 473bc7072..0ba95250c 100644 --- a/docker-compose/executors/executor.docker-compose.yaml +++ b/docker-compose/executors/executor.docker-compose.yaml @@ -9,6 +9,7 @@ services: # Run with privileged capabilities (required for docker daemon control) privileged: true environment: + - DEPLOY_TYPE=docker-compose # Refer to https://sourcegraph.com/docs/self-hosted/executors/executors-config on how to populate these variables - EXECUTOR_FRONTEND_URL=http://sourcegraph-frontend-0:3080 # Note: Must match `executors.accessToken` in site config