Skip to content

Instantly share code, notes, and snippets.

@huyinghuan
Created May 7, 2020 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huyinghuan/409d5cc6ef4e66cf45bf972f27c481ae to your computer and use it in GitHub Desktop.
Save huyinghuan/409d5cc6ef4e66cf45bf972f27c481ae to your computer and use it in GitHub Desktop.
version: "2.0"
services:
gitlab:
image: gitlab/gitlab-ce:12.10.3-ce.0
container_name: gitlab
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://test.com'
ports:
- "80:80"
- "443:443"
- "22:22"
volumes:
- "/home/ec/mywork/docker/gitlab/config:/etc/gitlab"
- "/home/ec/mywork/docker/gitlab/logs:/var/log/gitlab"
- "/home/ec/mywork/docker/gitlab/data:/var/opt/gitlab"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment