gitlab-test/docker-compose.yml

24 lines
531 B
YAML
Raw Normal View History

2022-05-21 21:59:10 +00:00
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '8080:80'
- '2222:22'
volumes:
- gitlab-config:/etc/gitlab
- gitlab-logs:/var/log/gitlab
- gitlab-data:/var/opt/gitlab
shm_size: '256m'
volumes:
gitlab-config:
gitlab-logs:
gitlab-data: