Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 0.X/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ if [ -n "$CONSUL_CLIENT_INTERFACE" ]; then
echo "==> Found address '$CONSUL_CLIENT_ADDRESS' for interface '$CONSUL_CLIENT_INTERFACE', setting client option..."
fi

# You can set CONSUL_DOCKER_API for docker.sock file
# Default find docker.sock in /var/run/ if exist set permission
# Use -e CONSUL_DOCKER_API <your-file> if want use with environment
if [ -n "$CONSUL_DOCKER_API" ] || [ -S /var/run/docker.sock ]; then
chgrp consul ${CONSUL_DOCKER_API:-/var/run/docker.sock}
fi

# CONSUL_DATA_DIR is exposed as a volume for possible persistent storage. The
# CONSUL_CONFIG_DIR isn't exposed as a volume but you can compose additional
# config files in there if you use this image as a base, or use CONSUL_LOCAL_CONFIG
Expand Down