summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 26abf4a5b989e788237db02ef31d6564396b9182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "3.7"

services:
  cgit:
    build:
      context: "docker/cgit"
      dockerfile: "Dockerfile"
    env_file: .env
    volumes:
      - "${REPOSITORIES_PATH}:${CGIT_SCAN_PATH}"
      - "./data/assets:/usr/share/cgit-docker"
    networks:
      - traefik
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.cgit-root.rule=Host(`${DOMAIN}`)"
      - "traefik.http.routers.cgit-root.entrypoints=websecure"
      - "traefik.http.routers.cgit-root.tls=true"
      - "traefik.http.routers.cgit-root.tls.certresolver=letsencrypt"

networks:
  traefik:
    external: true
    name: "${TRAEFIK_NETWORK}"