Permalink
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (41 sloc) 1015 Bytes
version: "3"
networks:
proxy:
external: true
services:
proxy:
image: dockerflow/docker-flow-proxy:${TAG:-latest}
ports:
- 80:80
- 443:443
networks:
- proxy
environment:
- LISTENER_ADDRESS=swarm-listener
- MODE=swarm
- CONNECTION_MODE=${CONNECTION_MODE:-http-server-close}
- STATS_USER=admin
- STATS_PASS=admin
deploy:
resources:
reservations:
memory: 10M
limits:
memory: 20M
swarm-listener:
image: dockerflow/docker-flow-swarm-listener
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove
deploy:
placement:
constraints: [node.role == manager]
resources:
reservations:
memory: 5M
limits:
memory: 10M