-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yaml
31 lines (30 loc) · 1.19 KB
/
docker-compose.example.yaml
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
version: '3'
services:
shortlink:
image: ghcr.io/patrick246/shortlink:1.1.2
command:
- --storage.type=local
- --storage.local.path=/storage
- --auth.type=basic
- --auth.basic.user=admin
- --auth.basic.password=$$2y$$12$$ipUJQwCRes0DiQRQCCUPt./U.hmgUMzoEjuE60Wd7W.FGiQ6bk71O # admin
volumes:
- /volumes/shortlink:/storage
networks:
- traefik_net
labels:
traefik.enable: "true"
traefik.docker.network: "traefik_net"
traefik.http.routers.shortlink.entrypoints: "web"
traefik.http.routers.shortlink.rule: "Host(`short.example.com`)"
traefik.http.routers.shortlink.middlewares: "shortlink-redirect"
traefik.http.middlewares.shortlink-redirect.redirectscheme.scheme: "https"
traefik.http.routers.shortlink-secure.entrypoints: "websecure"
traefik.http.routers.shortlink-secure.rule: "Host(`short.example.com`)"
traefik.http.routers.shortlink-secure.tls: "true"
traefik.http.routers.shortlink-secure.tls.certresolver: "le"
traefik.http.routers.shortlink-secure.service: "shortlink"
traefik.http.services.shortlink.loadbalancer.service.port: "8080"
networks:
traefik_net:
external: true