File tree 4 files changed +18
-9
lines changed
4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
1
GITLAB_HOSTNAME=my.domain.tld
2
+ GITLAB_SSH_PORT=22
Original file line number Diff line number Diff line change 1
- config /
2
- data /
3
- logs /
1
+ .env
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ git clone https://github.com/solution-libre/docker-gitlab.git gitlab
21
21
cd gitlab
22
22
```
23
23
24
- Change the hostname value in ` .env ` .
24
+ Declare environment variables or copy the ` .env.dist ` to ` .env ` and adjust its values .
25
25
26
26
## Usage
27
27
@@ -38,6 +38,10 @@ docker-compose up -d
38
38
39
39
The GitLab hostname. Default value: 'my.domain.tld'
40
40
41
+ #### ` GITLAB_SSH_PORT `
42
+
43
+ The GitLab SSH port for git. Default value: '22'
44
+
41
45
## Development
42
46
43
47
[ Solution Libre] ( https://www.solution-libre.fr ) 's repositories are open projects, and community contributions are essential for keeping them great.
Original file line number Diff line number Diff line change @@ -18,19 +18,25 @@ services:
18
18
- default
19
19
- web
20
20
ports :
21
- - ' 22 :22'
21
+ - ${GITLAB_SSH_PORT} :22
22
22
volumes :
23
- - ./docker-volume/web/config :/etc/gitlab
24
- - ./docker-volume/web/logs :/var/log/gitlab
25
- - ./docker-volume/web/data :/var/opt/gitlab
23
+ - web_config :/etc/gitlab
24
+ - web_logs :/var/log/gitlab
25
+ - web_data :/var/opt/gitlab
26
26
27
27
runner :
28
28
image : ' gitlab/gitlab-runner:latest'
29
29
restart : always
30
30
volumes :
31
- - ./docker-volume/runner/config :/etc/gitlab-runner
31
+ - runner_config :/etc/gitlab-runner
32
32
- /var/run/docker.sock:/var/run/docker.sock
33
33
34
34
networks :
35
35
web :
36
36
external : true
37
+
38
+ volumes :
39
+ runner_config :
40
+ web_config :
41
+ web_data :
42
+ web_logs :
You can’t perform that action at this time.
0 commit comments