-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
60 lines (44 loc) · 1.89 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3"
services:
git-server:
image: rockstorm/git-server
container_name: git-server
restart: unless-stopped
environment:
# Password for the git user
GIT_PASSWORD: "12345"
# Path where the file with the password for the git user will be
# mounted in the container in order to replace the default one
# GIT_PASSWORD_FILE: /run/secrets/git_password
# Fetch an `authorized_keys` file form an online location
# SSH_AUTHORIZED_KEYS_URL: https://github.com/username.keys
# Set the allowed authentication methods
# SSH_AUTH_METHODS: "publickey keyboard-interactive"
# Path where the SSH host keys will be mounted in the container
# in order to replace the default keys
# SSH_HOST_KEYS_PATH: /tmp/host-keys
# Setting this variable creates a link in the git user directory
# to access repositories without absolute paths
# REPOSITORIES_HOME_LINK: /srv/git
# Set specific UID and GID for the git user
# GIT_USER_UID: 1001
# GIT_USER_GID: 1001
volumes:
# Folder with git repositories
- git-repositories:/srv/git
# File containing the password for the git user
# - /path/to/password/file:/run/secrets/git_password:ro
# File containing the SSH keys of clients that will be allowed
# to use this service through a public key
# - /path/to/authorized_keys:/home/git/.ssh/authorized_keys
# A folder with host SSH keys to use instead of the default ones
# - /path/to/host-keys:/tmp/host-keys:ro
# Configuration file for the OpenSSH daemon to use instead of
# the one that is generated by default
# - ./sshd_config.sample:/etc/ssh/sshd_config:ro
# Disable interactive SSH login for the git user
# - /executable/file:/home/git/git-shell-commands/no-interactive-login
ports:
- "2222:22"
volumes:
git-repositories: