-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (59 loc) · 2.04 KB
/
docker-compose.yml
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
services:
agent:
# x-release-please-start-version
image: ${NE_IMAGE_REGISTRY:-}${NE_IMAGE_ORGANIZATION:-sixsq}/${NE_IMAGE_GO_REPOSITORY:-nuvlaedge-go}:${NE_IMAGE_TAG:-2.5.2}
# x-release-please-end
container_name: ${COMPOSE_PROJECT_NAME:-nuvlaedge}-agent-go
command:
- run
network_mode: "host"
restart: always
stop_grace_period: 5s
mem_limit: ${MEMORY_LIMIT:-50m}
mem_reservation: ${MEMORY_RESERVATION:-30m}
memswap_limit: ${MEMORY_SWAP_LIMIT:-50m}
environment:
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-nuvlaedge}
- NUVLAEDGE_UUID=${NUVLAEDGE_UUID}
- NUVLAEDGE_API_KEY=${NUVLAEDGE_API_KEY:-}
- NUVLAEDGE_API_SECRET=${NUVLAEDGE_API_SECRET:-}
- NUVLAEDGE_DEBUG=${NUVLAEDGE_DEBUG:-false}
- NUVLAEDGE_LOG_LEVEL=${NUVLAEDGE_LOG_LEVEL:-INFO}
- NUVLA_ENDPOINT=${NUVLA_ENDPOINT:-nuvla.io}
- NUVLA_INSECURE=${NUVLA_ENDPOINT_INSECURE:-false}
- JOB_LEGACY_IMAGE=${JOB_LEGACY_IMAGE:-${NUVLAEDGE_JOB_ENGINE_LITE_IMAGE:-}}
- JOB_LEGACY_ENABLE=${JOB_LEGACY_ENABLE:-}
- HOME=${HOME:-}
# Below variables are not directly used by agent but are here
# to be sent to Nuvla so they are not lost when updating NE
- LOG_MAX_SIZE
- LOG_MAX_FILE
- DOCKER_SOCKET_PATH
- NE_IMAGE_REGISTRY
- NE_IMAGE_ORGANIZATION
- NE_IMAGE_REPOSITORY
- NE_IMAGE_GO_REPOSITORY
- NE_IMAGE_INSTALLER
- MEMORY_LIMIT
- MEMORY_RESERVATION
- MEMORY_SWAP_LIMIT
volumes:
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
- nuvlaedge-data:/var/lib/nuvlaedge
- /:/rootfs:ro
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-250k}"
max-file: "${LOG_MAX_FILE:-10}"
labels:
- "nuvlaedge.component=True"
- "nuvlaedge.deployment=production"
- "nuvlaedge.type=go"
volumes:
nuvlaedge-data:
driver: local
labels:
- "nuvlaedge.volume=True"
- "nuvlaedge.deployment=production"
- "nuvlaedge.volume.type=data"