Skip to content

Instantly share code, notes, and snippets.

@avraampiperidis
Created October 1, 2021 10:15
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 avraampiperidis/d279addc5424fffd74d20fa6cdaf64d3 to your computer and use it in GitHub Desktop.
Save avraampiperidis/d279addc5424fffd74d20fa6cdaf64d3 to your computer and use it in GitHub Desktop.
# This docker compose will start a gitlab instance,
version: "3.5"
services:
gitlab:
image: "gitlab/gitlab-ee:latest"
restart: always
hostname: "localhost"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://localhost'
registry_external_url 'https://localhost:5050'
gitlab_rails['gitlab_shell_ssh_port'] = 22
ports:
- "80:80"
- "443:443"
- "22:22"
- "5050:5050"
volumes:
- "/srv/gitlab/config:/etc/gitlab"
- "/srv/gitlab/logs:/var/log/gitlab"
- "/srv/gitlab/data:/var/opt/gitlab"
networks:
- gitlab
networks:
gitlab:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment