version: 2 services: web: image: 'gitlab/gitlab-ce:latest' container_name: gitlab_ce restart: always hostname: 'gitlab.devops-lyon.eu' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.devops-lyon.eu' # Add any other gitlab.rb configuration here, each on its own line ports: - '80:80' - '22:22' volumes: - 'gitlab_config:/etc/gitlab' - 'gitlab_logs:/var/log/gitlab' - 'gitlab_data:/var/opt/gitlab'