1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
version: '3' services: cgit: build: context: . image: cgit volumes: - ./homedir:/var/git - ./hostkeys:/var/hostkeys environment: - CGIT_UID=1000 - CGIT_GID=1000 ports: - '127.0.0.1:8080:8080' - '0.0.0.0:8022:8022'