Skip to content

Instantly share code, notes, and snippets.

@RezhaBlue
Created September 6, 2019 06:16
Show Gist options
  • Save RezhaBlue/b284da5de4e2a8312f2c5d2d52b5102f to your computer and use it in GitHub Desktop.
Save RezhaBlue/b284da5de4e2a8312f2c5d2d52b5102f to your computer and use it in GitHub Desktop.
version: "3.7"
networks:
gitlab:
external: false
volumes:
config:
driver: local
logs:
driver: local
data:
driver: local
services:
app:
image: gitlab/gitlab-ce:latest
networks:
- gitlab
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 8082
volumes:
- config:/etc/gitlab
- logs:/var/log/gitlab
- data:/var/opt/gitlab
ports:
- '8929:8929'
- '8082:22'
# persist data via docker-compose restarts e.g. on windows
# on login, start docker then restart docker compose then access locally hosted gitlab
# for automation, set docker service to delayed automatic start then execute the following:
# Do {
# $dockerps = (docker ps)
# Start-Sleep -S 5
# } While (! $dockerps -contains "gitlab")
# Set-Location C:\workspace\gitlab
# docker-compose restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment