-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create docker-compose.socket-proxy.yml
Adds an example using a docker socket proxy. Implements #131
- Loading branch information
1 parent
b1c7c8d
commit fe50124
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
services: | ||
service: | ||
image: containrrr/shepherd | ||
environment: | ||
DOCKER_HOST: tcp://tasks.socket-proxy:2375 | ||
networks: | ||
- socket_proxy | ||
deploy: | ||
replicas: 1 | ||
|
||
socket-proxy: | ||
image: tecnativa/docker-socket-proxy | ||
networks: | ||
- socket_proxy | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
deploy: | ||
replicas: 1 | ||
placement: | ||
constraints: | ||
- node.role==manager | ||
environment: | ||
LOG_LEVEL: info | ||
POST: 1 # Enable methods that allow changes | ||
## Variables match the URL prefix (i.e. AUTH: 1 allow access to /auth/* parts of the API, etc.). | ||
SERVICES: 1 | ||
DISTRIBUTION: 1 | ||
TASKS: 1 | ||
NODES: 1 | ||
|
||
networks: | ||
socket_proxy: |