Compose-Examples/examples/gitlab/docker-compose.yml

28 lines
887 B
YAML
Raw Normal View History

2023-02-17 11:50:22 +00:00
version: '3.7'
services:
gitlab-ce:
image: gitlab/gitlab-ce:latest
restart: unless-stopped
container_name: gitlab-ce
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com' # please adjust
ports:
- 8033:80 # HTTP
- 8434:443 # HTTPS
- 2222:22 # SSH
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/config:/etc/gitlab
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/logs:/var/log/gitlab
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/data:/var/opt/gitlab
2023-02-17 11:50:22 +00:00
gitlab-runner:
image: gitlab/gitlab-runner:alpine
container_name: gitlab-runner
restart: unless-stopped
depends_on:
- gitlab-ce
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/runner:/etc/gitlab-runner