File tree Expand file tree Collapse file tree 6 files changed +763
-0
lines changed
Expand file tree Collapse file tree 6 files changed +763
-0
lines changed Original file line number Diff line number Diff line change 1+ GITLAB_HOSTNAME = my.domain.tld
Original file line number Diff line number Diff line change 1+ config /
2+ data /
3+ logs /
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ Docker GitLab
2+
3+ Copyright 2018 Solution Libre SAS
4+
5+ This program is free software: you can redistribute it and/or modify
6+ it under the terms of the GNU General Public License as published by
7+ the Free Software Foundation, either version 3 of the License, or
8+ (at your option) any later version.
9+
10+ This program is distributed in the hope that it will be useful,
11+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ GNU General Public License for more details.
14+
15+ You should have received a copy of the GNU General Public License
16+ along with this program. If not, see <http://www.gnu.org/licenses/>.
Original file line number Diff line number Diff line change 1+ # GitLab with Docker Compose
2+
3+ #### Table of Contents
4+
5+ 1 . [ Description] ( #module-description )
6+ 2 . [ Setup] ( #setup )
7+ 3 . [ Usage] ( #usage )
8+ 4 . [ Development] ( #development )
9+ 5 . [ Contributors] ( #contributors )
10+
11+ ## Description
12+
13+ Docker-compose setup for starting GitLab with [ Træfik] ( https://traefik.io/ ) .
14+
15+ ## Setup
16+
17+ ``` sh
18+ cd /opt
19+ git clone https://github.com/solution-libre/docker-gitlab.git gitlab
20+ cd gitlab
21+ ```
22+
23+ Change the hostname value in ` .env ` .
24+
25+ ## Usage
26+
27+ ``` sh
28+ cd /opt/gitlab
29+ docker-compose up -d
30+ ```
31+
32+ ## Development
33+
34+ [ Solution Libre] ( https://www.solution-libre.fr ) 's repositories are open projects, and community contributions are essential for keeping them great.
35+
36+
37+ [ Fork this repo on GitHub] ( https://github.com/solution-libre/docker-gitlab/fork )
38+
39+ ## Contributors
40+
41+ The list of contributors can be found at: https://github.com/solution-libre/docker-gitlab/graphs/contributors
Original file line number Diff line number Diff line change 1+ version : " 3.3"
2+
3+ services :
4+ web :
5+ image : ' gitlab/gitlab-ce:latest'
6+ restart : always
7+ hostname : ${GITLAB_HOSTNAME}
8+ environment :
9+ GITLAB_OMNIBUS_CONFIG : |
10+ external_url "http://${GITLAB_HOSTNAME}"
11+ labels :
12+ traefik.backend : ' gitlab'
13+ traefik.enable : ' true'
14+ traefik.docker.network : ' web'
15+ traefik.frontend.rule : " Host:${GITLAB_HOSTNAME}"
16+ traefik.port : ' 80'
17+ networks :
18+ - web
19+ ports :
20+ - ' 22:22'
21+ volumes :
22+ - ' ./config:/etc/gitlab'
23+ - ' ./logs:/var/log/gitlab'
24+ - ' ./data:/var/opt/gitlab'
25+
26+ networks :
27+ web :
28+ external : true
You can’t perform that action at this time.
0 commit comments