version: '3.6' services: web: container_name: gitlab image: 'gitlab/gitlab-ee:latest' restart: unless-stopped hostname: 'gitlab.example.com' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.example.com' # Add any other gitlab.rb configuration here, each on its own line # ports: # - '80:80' # - '443:443' # - '22:22' volumes: - './data/config:/etc/gitlab' - './data/logs:/var/log/gitlab' - './data/data:/var/opt/gitlab' shm_size: '256m' networks: nginx: aliases: - gitlab networks: nginx: external: true