web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab.hostname.de' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.hostname.de:8443' # Add any other gitlab.rb configuration here, each on its own line ports: - '8443:8443' - '22:22' volumes: - '/srv/gitlab/config:/etc/gitlab' - '/srv/gitlab/logs:/var/log/gitlab' - '/srv/gitlab/data:/var/opt/gitlab'