24 lines
531 B
YAML
24 lines
531 B
YAML
|
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:
|