services: gitlab: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab.example.com' volumes: - /containers/data/gitlab/config:/etc/gitlab - /containers/data/gitlab/logs:/var/log/gitlab - /containers/data/gitlab/data:/var/opt/gitlab - /containers/data/gitlab/backup:/backup ports: - "10022:22" - "60099:80" - "60098:443" logging: driver: fluentd options: tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"