-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
old-stack-proxy.yml
49 lines (44 loc) · 1.14 KB
/
old-stack-proxy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.3'
# this is an alternate proxy setup using haproxy
services:
proxy:
image: vfarcic/docker-flow-proxy
ports:
- '80:80'
- '443:443'
# high public port for healthchecks from external LB
# ping url: /v1/docker-flow-proxy/ping
- '9433:8080'
networks:
- proxy
environment:
LISTENER_ADDRESS: "swarm-listener"
MODE: "swarm"
DEBUG: "true"
# secrets:
# - cert-docker-dev
deploy:
mode: global
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/v1/docker-flow-proxy/ping"]
swarm-listener:
image: vfarcic/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
networks:
proxy:
external: true
# secrets:
# cert-docker-dev:
# file: ./nginx/dev-full.pem