-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.4 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
version: "3.5"
services:
smokeping:
image: linuxserver/smokeping
container_name: smokeping
hostname: mydockerprobe
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
volumes:
- ${CONFIG_SMOKEPING}/config:/config
- ${CONFIG_SMOKEPING}/data:/data
ports:
- 80:80
restart: ${RESTART_POLICY}
labels:
- "traefik.enable=true"
- "traefik.http.routers.smokeping-https.rule=Host(`myhostname.mydomain`)"
- "traefik.http.routers.smokeping-https.entrypoints=websecure"
- "traefik.http.routers.smokeping-https.tls.certresolver=myresolver"
traefik:
image: traefik:v2.2
container_name: traefik
command:
# - "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.myresolver.acme.email=letsencrypt-receiver@mydomain"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- 443:443
- 8080:8080
volumes:
- ${CONFIG_TRAEFIK}/letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: ${RESTART_POLICY}