blob: 53b9bd6b325a1deea7553a94c3de3ab6cd125149 (
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
|
# 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_repo1=/repo1.git;user1 # user without permission flag has read by default
- REPO_repo2=/repo2.git;user2:w
- REPO_repo3=/repo3.git;user1:r;user2:w
volumes:
- ./donotsync/ssh:/var/ssh
- ./donotsync/repos:/srv/repos
- ./donotsync/log:/var/log
|