Skip to content

Commit 45beb6b

Browse files
committed
Support rootless Docker operation
1 parent 886abf0 commit 45beb6b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ API_EXTERNAL_PORT=3000 # Port on which the API service is made available
2929

3030
#API_INTERNAL_HOST= # Defaults to 0.0.0.0, listening to all clients
3131
#API_INTERNAL_PORT= # Defaults to API_EXTERNAL_PORT
32+
33+
# Worker configuration
34+
DOCKER_SOCKET=/var/run/docker.sock # for a rootless Docker setup, use ${XDG_RUNTIME_DIR}/docker.sock

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ services:
8181
volumes:
8282
- dolos-api-storage:/dolos/storage
8383
- /tmp:/tmp
84-
- /var/run/docker.sock:/var/run/docker.sock
84+
- ${DOCKER_SOCKET}:/var/run/docker.sock
8585
environment:
8686
DOLOS_API_DATABASE_USERNAME: ${DATABASE_USER:?}
8787
DOLOS_API_DATABASE_PASSWORD: ${DATABASE_PASSWORD:?}

0 commit comments

Comments
 (0)