# 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_=: - 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_=;:;:;... - 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