Docs feedback: Docker compose example file not working
The example docker compose file in this guide, is not working for me.
version: '3.6'
services:
gitlab:
image: gitlab/gitlab-ee:latest-ee.0
name: gitlab
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url 'https://gitlab.example.com'
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
is returning the following error, when i run docker compose up -d
validating /home/ubuntu/gitlabci/docker-compose.yml: services.gitlab Additional property name is not allowed