# docker-compose.yml
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'xxx'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'xxx'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
ports:
- '80:80'
- '433:433'
- '2222:22'
volumes:
- '/home/mmr/docker/gitlab/config:/etc/gitlab'
- '/home/mmr/docker/gitlab/logs:/var/log/gitlab'
- '/home/mmr/docker/gitlab/data:/var/opt/gitlab'
shm_size: '256m'
deploy:
resources:
limits:
memory: 512M