-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.traefik-example.yml
33 lines (32 loc) · 1.13 KB
/
docker-compose.traefik-example.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
version: '2.3'
services:
screenshotr:
build: .
restart: always
container_name: screenshotr
environment:
- Screenshotr:Data=/data
volumes:
- type: bind
source: <SET PATH HERE> # path on host machine ...
target: /data # ... maps to default path inside container
tty: true
#ports:
# - 5020:5020
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.screenshotr.entrypoints=http"
- "traefik.http.routers.screenshotr.rule=Host(`screenshotr.<mydomain>`)"
- "traefik.http.middlewares.screenshotr-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.screenshotr.middlewares=screenshotr-https-redirect"
- "traefik.http.routers.screenshotr-secure.entrypoints=https"
- "traefik.http.routers.screenshotr-secure.rule=Host(`screenshotr.<mydomain>`)"
- "traefik.http.routers.screenshotr-secure.tls=true"
- "traefik.http.routers.screenshotr-secure.service=screenshotr"
- "traefik.http.services.screenshotr.loadbalancer.server.port=5020"
- "traefik.docker.network=web"
networks:
web:
external: true