summaryrefslogblamecommitdiffstats
path: root/docker-compose.yml
blob: 68ca9a531fa3360579b59eb7acaf0061c4b5e1ef (plain) (tree)
1
2
3
4
5
6
7
8



              
                     

                     
                                




                       


                     
                                         

                     
                               


                             

                                             







                      
version: "3.7"

services:
  gitolite:
    build: "gitolite"
    restart: "always"
    volumes:
      - "data:/git/repositories"
      - "ssh:/hostkeys"
    ports:
      - "22:22"

  cgit:
    build:
      context: "cgit"
      args:
        SRCNODE_VERSION: "srcnode v0.3.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