https://github.com/mrlesmithjr/docker-ansible-gitlabce
https://github.com/mrlesmithjr/docker-ansible-gitlabce
ansible docker gitlab-ce
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrlesmithjr/docker-ansible-gitlabce
- Owner: mrlesmithjr
- Created: 2016-09-06T22:45:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T02:18:00.000Z (over 9 years ago)
- Last Synced: 2025-03-15T01:13:47.207Z (about 1 year ago)
- Topics: ansible, docker, gitlab-ce
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Repo Info
=========
Build [Docker] image for [GitLab-CE] provisioned via [Ansible]
Building
--------
If you need to modify any configurations you will need to rebuild the image:
```
docker build -t gitlabce .
```
And then spin the image up:
```
docker run -d -p 2222:22 -p 80:80 -p 443:443 gitlabce
```
Consuming
---------
```
docker run -d -p 2222:22 -p 80:80 -p 443:443 mrlesmithjr/gitlabce
```
Spin up using `docker-compose`:
```
docker-compose up -d
```
`docker-compose.yml`
```
version: '2'
services:
gitlabce:
image: "mrlesmithjr/gitlabce"
volumes:
- "gitlab_etc:/etc/gitlab"
- "gitlab_opt:/var/opt/gitlab"
- "gitlab_log:/var/log/gitlab"
ports:
- "2222:22"
- "80:80"
- "443:443"
privileged: true
restart: always
volumes:
gitlab_etc:
gitlab_opt:
gitlab_log:
```
Define Alternate SSH Port For GitLab
------------------------------------
The following will need to be configured in order to properly SSH to [GitLab-CE]
```
vi ~/.ssh/config
```
Replace localhost with respective hostname...
```
Host localhost
Hostname localhost
User git
Port 2222
```
Log Into WebUI...
http://IPorHostName
License
-------
BSD
Author Information
------------------
Larry Smith Jr.
- [@mrlesmithjr]
- [everythingshouldbevirtual.com]
- [mrlesmithjr@gmail.com]
[Ansible]:
[Docker]:
[GitLab-CE]:
[@mrlesmithjr]:
[everythingshouldbevirtual.com]:
[mrlesmithjr@gmail.com]: