Skip to content

Commit

Permalink
Add DOCKER_HOST documentation (#74)
Browse files Browse the repository at this point in the history
* add DOCKER_HOST documentation

* add which endpoints are required for DOCKER_HOST

* Update README.md

Co-authored-by: Frederik Ring <[email protected]>
  • Loading branch information
rpatel3001 and m90 authored Feb 22, 2022
1 parent 0504a92 commit 00f2359
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ It handles __recurring or one-off backups of Docker volumes__ to a __local direc
- [Using with Docker Swarm](#using-with-docker-swarm)
- [Manually triggering a backup](#manually-triggering-a-backup)
- [Update deprecated email configuration](#update-deprecated-email-configuration)
- [Using a custom Docker host](#using-a-custom-docker-host)
- [Recipes](#recipes)
- [Backing up to AWS S3](#backing-up-to-aws-s3)
- [Backing up to Filebase](#backing-up-to-filebase)
Expand Down Expand Up @@ -321,6 +322,13 @@ You can populate below template according to your requirements and use it as you

# NOTIFICATION_LEVEL="error"

########### DOCKER HOST

# If you are interfacing with Docker via TCP you can set the Docker host here
# instead of mounting the Docker socket as a volume. This is unset by default.

# DOCKER_HOST="tcp://docker_socket_proxy:2375"

########### EMAIL NOTIFICATIONS

# ************************************************************************
Expand Down Expand Up @@ -616,6 +624,15 @@ After:
NOTIFICATION_URLS=smtp://me:[email protected]:587/[email protected]&[email protected]
```

### Using a custom Docker host

If you are interfacing with Docker via TCP, set `DOCKER_HOST` to the correct URL.
```ini
DOCKER_HOST=tcp://docker_socket_proxy:2375
```

In case you are using a socket proxy, it must support `GET` and `POST` requests to the `/containers` endpoint. If you are using Docker Swarm, it must also support the `/services` endpoint.

## Recipes

This section lists configuration for some real-world use cases that you can mix and match according to your needs.
Expand Down

0 comments on commit 00f2359

Please sign in to comment.