forked from BretFisher/dogvscat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-proxy.yml
57 lines (52 loc) · 1.48 KB
/
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
50
51
52
53
54
55
56
57
# simple proxy example using traefik single container
# for a more full-featured solution with multi-node proxy,
# HA, consul backend, and more, see stack-proxy-global.yml
version: '3.7'
services:
traefik:
image: traefik:1.7-alpine
networks:
- proxy
volumes:
- acme:/etc/traefik/acme
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "443:443"
- "8080:8080" # traefik dashboard
command:
# Use your favourite settings here, but add:
- --docker
- --docker.swarmMode
- --docker.domain=traefik
- --docker.watch
- --api
- --defaultentrypoints=http,https
# - --acme
# - --acme.email=${TRAEFIK_ACME_EMAIL}
# # TODO: envvar for email and default domain
# - --acme.httpchallenge
# - --acme.httpchallenge.entrypoint=http
# - --acme.onhostrule=true
# - --acme.entrypoint=https
# - --entryPoints=Name:https Address::443 TLS
# - --entryPoints=Name:http Address::80
# - --acme.storage=/etc/traefik/acme/acme.json
# - --acme.acmelogging
# - --acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
# - --acme.caserver=https://acme-v02.api.letsencrypt.org/directory
deploy:
placement:
constraints: [node.role == manager]
logging:
options:
max-size: "500k"
volumes:
acme:
driver: rexray/dobs
driver_opts:
size: 1
networks:
proxy:
driver: overlay
name: proxy