aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/lounge/docker-compose.yml
blob: e755935a2c2f249d682f2069fd8714e746718203 (plain) (blame)
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
version: '3'
services:
  app:
    image: thelounge/thelounge:4.3.1
    volumes:
      - thelounge-data:/var/opt/thelounge
    networks:
      - traefik-public
    deploy:
      placement:
        constraints:
          - node.labels.thelounge.thelounge-data == true
      labels:
        - traefik.enable=true
        - traefik.docker.network=traefik-public
        - traefik.constraint-label=traefik-public
        - traefik.http.routers.thelounge-http.rule=Host(`lounge.terminaldweller.com`)
        - traefik.http.routers.thelounge-http.entrypoints=http
        - traefik.http.routers.thelounge-http.middlewares=https-redirect
        - traefik.http.routers.thelounge-https.rule=Host(`lounge.terminaldweller.com`)
        - traefik.http.routers.thelounge-https.entrypoints=https
        - traefik.http.routers.thelounge-https.tls=true
        - traefik.http.routers.thelounge-https.tls.certresolver=le
        - traefik.http.services.thelounge.loadbalancer.server.port=9000
networks:
  traefik-public:
    external: true
volumes:
  thelounge-data: