Skip to content

Commit

Permalink
Docker: allow to define docker socket path via DOCKER_SOCKET_PATH env…
Browse files Browse the repository at this point in the history
… var.
  • Loading branch information
schaubl committed Dec 16, 2023
1 parent 548535d commit fc2f449
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ services:
- /dev/:/host/dev/:ro
- /etc/:/host/etc/:ro
- /usr/lib/:/host/usr/lib/:ro
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
depends_on:
- agent
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- NE_IMAGE_REPOSITORY
- NE_IMAGE_TAG=${NE_IMAGE_TAG:-2.12.2}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
- nuvlabox-db:/srv/nuvlaedge/shared

agent:
Expand Down Expand Up @@ -78,8 +78,9 @@ services:
- COMPUTE_API_PORT
- LOG_MAX_SIZE
- LOG_MAX_FILE
- DOCKER_SOCKET_PATH
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
- nuvlabox-db:/srv/nuvlaedge/shared
- /:/rootfs:ro

Expand All @@ -95,7 +96,7 @@ services:
environment:
- HOST=${HOSTNAME:-nuvlaedge}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock
- nuvlabox-db:/srv/nuvlaedge/shared
ports:
- "0.0.0.0:${COMPUTE_API_PORT:-}:5000"
Expand Down Expand Up @@ -134,4 +135,4 @@ services:
command:
- /app/pause.py
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock

0 comments on commit fc2f449

Please sign in to comment.