Skip to content

Commit

Permalink
Create docker-compose.socket-proxy.yml
Browse files Browse the repository at this point in the history
Adds an example using a docker socket proxy.

Implements #131
  • Loading branch information
SheepReaper authored Feb 25, 2025
1 parent b1c7c8d commit fe50124
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions examples/docker-compose.socket-proxy.yml
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:

0 comments on commit fe50124

Please sign in to comment.