File: docker-compose.yaml

package info (click to toggle)
borgmatic 2.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,752 kB
  • sloc: python: 58,506; sh: 150; makefile: 8; javascript: 5
file content (49 lines) | stat: -rw-r--r-- 2,114 bytes parent folder | download
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
services:
  traefik:
    image: public.ecr.aws/docker/library/traefik:3.5.3
    container_name: borgmatic-docs-traefik
    command:
      - "--global.checkNewVersion=false"
      - "--global.sendAnonymousUsage=false"
      - "--entrypoints.web.address=:8080"
      - "--accesslog"
      - "--accesslog.fields.headers.defaultmode=keep"
      - "--providers.docker"
      - "--providers.docker.exposedbydefault=false"
      - "--api.insecure=false"
      - "--api.dashboard=false"
      - "--log.level=WARN"
    ports:
      - "127.0.0.1:8080:8080"
    volumes:
      - ${CONTAINER_SOCKET_PATH:-/run/user/docker.sock}:/var/run/docker.sock:ro
  docs:
    image: borgmatic-docs
    container_name: borgmatic-docs
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.borgmatic-docs.rule=PathPrefix(`/borgmatic`)"
      - "traefik.http.routers.borgmatic-docs.middlewares=borgmatic-trailing-slash-redirectregex,borgmatic-docs-redirectregex,borgmatic-stripprefix"
      - "traefik.http.middlewares.borgmatic-trailing-slash-redirectregex.redirectregex.regex=^(.*)/borgmatic$$"
      - "traefik.http.middlewares.borgmatic-trailing-slash-redirectregex.redirectregex.replacement=$${1}/borgmatic/"
      - "traefik.http.middlewares.borgmatic-trailing-slash-redirectregex.redirectregex.permanent=true"
      - "traefik.http.middlewares.borgmatic-docs-redirectregex.redirectregex.regex=^(.*)/borgmatic/docs/(.*)$$"
      - "traefik.http.middlewares.borgmatic-docs-redirectregex.redirectregex.replacement=$${1}/borgmatic/$${2}"
      - "traefik.http.middlewares.borgmatic-docs-redirectregex.redirectregex.permanent=true"
      - "traefik.http.middlewares.borgmatic-stripprefix.stripprefix.prefixes=/borgmatic"
      - "traefik.http.routers.borgmatic-docs.entrypoints=web"
    build:
      dockerfile: docs/Dockerfile
      context: ..
      args:
        ENVIRONMENT: development
  message:
    image: alpine
    container_name: borgmatic-docs-message
    command:
      - sh
      - -c
      - |
        echo; echo "You can view dev docs at http://localhost:8080/borgmatic/"; echo
    depends_on:
      - docs