summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: c1b2b441a3d1175d42e5ef84827c595c7d88a6af (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
30
31
services:
  gitolite:
    build: "gitolite"
    restart: "always"
    volumes:
      - "data:/git/repositories"
      - "ssh:/hostkeys"
    ports:
      - "22:22"

  cgit:
    build:
      context: "cgit"
      args:
        SRCNODE_VERSION: "srcnode v0.4.0"
    restart: "always"
    volumes:
      - "data:/repositories:ro"
    networks:
      - "nginx-proxy-network"
    environment:
      VIRTUAL_HOST: "YOUR-DOMAIN.example"
      LETSENCRYPT_HOST: "YOUR-DOMAIN.example"

volumes:
  data:
  ssh:

networks:
  nginx-proxy-network:
    external: true