# gitlab stack — single container + gitlab-data volume services: gitlab: image: gitlab/gitlab-ce:17.2.1-ce.0 container_name: gitlab restart: unless-stopped hostname: "gitlab.reeseapps.com" environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.reeseapps.com' gitlab_rails['gitlab_shell_ssh_port'] = 2222 ports: - "8929:80" - "2222:22" volumes: - gitlab-data:/var/opt/gitlab shm_size: "256m" deploy: resources: limits: memory: 4G volumes: gitlab-data: