summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 6489b56bb7e123f3a27c3c340256a55502385765 (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
# for local testing deployments
services:
  git-server:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "2222:22"
    restart: no
    environment:
      # Note: Variable names cannot have - inside but the values can!
      - GIT_UID=1000 # uid of the user that has access to all repos
      # Users in form of USER_<some chars>=<username>:<ssh-key>
      - USER_user1=user1:ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPsl91WPAT8aWwZ6y5WAfXU9PoHzxJ3YG9uFgSmlGQr2HwV+gL/XaTBJ4Brj+pa+R7tfYEBMi+7Navx/ZsEmr9E= mj@xps15
      - USER_user2=user2:ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPsl91WPAT8aWwZ6y5WAfXU9PoHzxJ3YG9uFgSmlGQr2HwV+gL/XaTBJ4Brj+pa+R7tfYEBMi+7Navx/ZsEmr9E= mj@xps15
      # Repos in form of REPO_<some chars>=<repo-path>;<user>:<permission>;<user2>:<permission>;...
      - REPO_test1=/test1.git;user1
      - REPO_test2=/test2.git;user2:w
      - REPO_test3=/test3.git;user1:r;user2:w
      - REPO_test4_test=/test-test.git;user1:w
    volumes:
      - ./donotsync/ssh:/var/ssh
      - ./donotsync/repos:/srv/repos
      - ./donotsync/log:/var/log