-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker-compose file for slim-docker image variant
- Loading branch information
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,94 @@ | ||
version: "3.7" | ||
|
||
|
||
x-common: &common | ||
image: ${NE_IMAGE_REGISTRY:-}${NE_IMAGE_ORGANIZATION:-sixsq}/${NE_IMAGE_REPOSITORY:-nuvlaedge}:${NE_IMAGE_TAG:-2.15.3}-slim-docker | ||
restart: always | ||
oom_score_adj: -900 | ||
stop_grace_period: 5s | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "${LOG_MAX_SIZE:-250k}" | ||
max-file: "${LOG_MAX_FILE:-10}" | ||
labels: | ||
- "nuvlaedge.component=True" | ||
- "nuvlaedge.deployment=production" | ||
|
||
|
||
volumes: | ||
|
||
nuvlaedge-data: | ||
driver: local | ||
labels: | ||
- "nuvlaedge.volume=True" | ||
- "nuvlaedge.deployment=production" | ||
- "nuvlaedge.volume.type=data" | ||
|
||
nuvlaedge-logs: | ||
driver: local | ||
labels: | ||
- "nuvlaedge.volume=True" | ||
- "nuvlaedge.deployment=production" | ||
- "nuvlaedge.volume.type=logging" | ||
|
||
|
||
services: | ||
|
||
agent: | ||
<<: *common | ||
entrypoint: agent | ||
container_name: ${COMPOSE_PROJECT_NAME:-nuvlaedge}-agent | ||
oom_kill_disable: true | ||
network_mode: ${NUVLAEDGE_AGENT_NET_MODE:-host} | ||
privileged: ${NUVLAEDGE_AGENT_PRIVILEGED:-true} | ||
environment: | ||
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-nuvlaedge} | ||
- NUVLAEDGE_UUID=${NUVLAEDGE_UUID} | ||
- NUVLAEDGE_LOG_LEVEL=${NUVLAEDGE_LOG_LEVEL:-INFO} | ||
- NUVLAEDGE_API_KEY=${NUVLAEDGE_API_KEY:-} | ||
- NUVLAEDGE_API_SECRET=${NUVLAEDGE_API_SECRET:-} | ||
- NUVLAEDGE_EXCLUDED_MONITORS=${NUVLAEDGE_EXCLUDED_MONITORS:-} | ||
- NUVLAEDGE_THREAD_MONITORS=${NUVLAEDGE_THREAD_MONITORS:-False} | ||
- NUVLAEDGE_IMMUTABLE_SSH_PUB_KEY=${NUVLAEDGE_SSH_PUB_KEY:-} | ||
- NUVLAEDGE_JOB_ENGINE_LITE_IMAGE | ||
- NUVLAEDGE_EXEC_JOBS_IN_AGENT | ||
- JOB_PULL_TIMEOUT | ||
- JOB_DOCKER_TIMEOUT | ||
- JOB_LOG_LEVEL | ||
- HOST_HOME=${HOME} | ||
- VPN_INTERFACE_NAME=${VPN_INTERFACE_NAME:-vpn} | ||
- VPN_CONFIG_EXTRA | ||
- NUVLA_ENDPOINT=${NUVLA_ENDPOINT:-https://nuvla.io} | ||
- NUVLA_ENDPOINT_INSECURE=${NUVLA_ENDPOINT_INSECURE:-False} | ||
- NE_IMAGE_REGISTRY | ||
- NE_IMAGE_ORGANIZATION | ||
- NE_IMAGE_REPOSITORY | ||
- NE_IMAGE_TAG=${NE_IMAGE_TAG:-2.15.3} | ||
- NE_IMAGE_INSTALLER | ||
- NUVLAEDGE_DEBUG=${NUVLAEDGE_DEBUG:-False} | ||
- NUVLAEDGE_LOGGING_DIRECTORY | ||
- DISABLE_FILE_LOGGING=${DISABLE_FILE_LOGGING:-False} | ||
- NUVLAEDGE_AGENT_NET_MODE=${NUVLAEDGE_AGENT_NET_MODE:-host} | ||
- NUVLAEDGE_DATA_GATEWAY_NAME=${NUVLAEDGE_DATA_GATEWAY_NAME:-data-gateway} | ||
- NUVLAEDGE_DATA_GATEWAY_ENABLED=${NUVLAEDGE_DATA_GATEWAY_ENABLED:-True} | ||
# Below variables are not directly used by agent but are here | ||
# to be sent to Nuvla so they are not lost when updating NE | ||
- NUVLAEDGE_DATA_GATEWAY_IMAGE | ||
- NUVLAEDGE_DATA_GATEWAY_ENABLE | ||
- NUVLAEDGE_SYSTEM_MANAGER_ENABLE | ||
- NUVLAEDGE_COMPUTE_API_ENABLE | ||
- NUVLAEDGE_AGENT_PRIVILEGED | ||
- NUVLAEDGE_VPN_CLIENT_ENABLE | ||
- NUVLAEDGE_VPN_PRIVILEGED | ||
- NUVLAEDGE_JOB_ENABLE | ||
- COMPUTE_API_PORT | ||
- LOG_MAX_SIZE | ||
- LOG_MAX_FILE | ||
- DOCKER_SOCKET_PATH | ||
- SKIP_MINIMUM_REQUIREMENTS=${SKIP_MINIMUM_REQUIREMENTS:-False} | ||
volumes: | ||
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock | ||
- nuvlaedge-data:/var/lib/nuvlaedge | ||
- nuvlaedge-logs:/var/log/nuvlaedge | ||
- /:/rootfs:ro |