-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (65 loc) · 2.21 KB
/
docker-compose.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.4"
services:
leshan-server:
build:
context: leshan-server
dockerfile: Dockerfile
ports:
#- 8080:8080
- 5683:5683/udp # oscore coap
- 5684:5684/udp # coaps
- 5685:5685/udp # coap
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.leshan_server.rule=Host(`leshan-server.testvps.acrios.com`)"
- "traefik.http.routers.leshan_server.EntryPoints=web"
- "traefik.http.routers.leshan_server.middlewares=redir-https@file"
- "traefik.http.routers.leshan_server-https.EntryPoints=websecure"
- "traefik.http.routers.leshan_server-https.rule=Host(`leshan-server.testvps.acrios.com`)"
- "traefik.http.routers.leshan_server-https.tls.certresolver=letsencrypt"
- "traefik.http.routers.leshan_server-https.tls=true"
- "traefik.http.services.leshan_server-https.loadbalancer.server.port=8080"
networks:
- "local"
- "proxy"
deploy:
resources:
limits:
memory: 1000M
leshan-bootstrap:
build:
context: leshan-bootstrap
dockerfile: Dockerfile
ports:
#- 8081:8081
- 5783:5783/udp
- 5784:5784/udp
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.leshan_bootstrap.rule=Host(`leshan-bootstrap.testvps.acrios.com`)"
- "traefik.http.routers.leshan_bootstrap.EntryPoints=web"
- "traefik.http.routers.leshan_bootstrap.middlewares=redir-https@file"
- "traefik.http.routers.leshan_bootstrap-https.EntryPoints=websecure"
- "traefik.http.routers.leshan_bootstrap-https.rule=Host(`leshan-bootstrap.testvps.acrios.com`)"
- "traefik.http.routers.leshan_bootstrap-https.tls.certresolver=letsencrypt"
- "traefik.http.routers.leshan_bootstrap-https.tls=true"
- "traefik.http.services.leshan_bootstrap-https.loadbalancer.server.port=8081"
networks:
- "local"
- "proxy"
deploy:
resources:
limits:
memory: 1000M
networks:
local:
external: False
ipam:
config:
- subnet: 172.111.255.0/24
proxy:
external: True