install gitlab with docker can not create gitlab.socket,docker is always unhealthy

I try to install gitlab with docker,docker-compose.yml is as follows version: '3' services: gitlab: container_name: gitlab image: gitlab/gitlab-ce:latest restart: always ports: - 172.19.0.1:8443:443 - 172.19.0.1:8080:80 - 172.19.0.1:8022:22 volumes: - '/srv/gitlab/config:/etc/gitlab' - '/srv/gitlab/logs:/var/log/gitlab' - '/srv/gitlab/data:/var/opt/gitlab' shm_size: 256m hostname: gitlab.nyx.supcon.com logging: options: max-size: 200m

but the gitlab docker is always unhealthy,after check,there is no gitlab.socket in gitlab-rails the docker log is as follows file gitlab-unhealthy.log

gitlab-ctl status in docker is as the follows: run: alertmanager: (pid 964) 129s; run: log: (pid 667) 639s run: gitaly: (pid 325) 706s; run: log: (pid 348) 703s run: gitlab-exporter: (pid 944) 130s; run: log: (pid 619) 657s run: gitlab-kas: (pid 495) 689s; run: log: (pid 509) 686s run: gitlab-workhorse: (pid 935) 131s; run: log: (pid 588) 668s run: logrotate: (pid 294) 718s; run: log: (pid 304) 715s run: nginx: (pid 591) 664s; run: log: (pid 612) 662s run: postgres-exporter: (pid 974) 128s; run: log: (pid 691) 631s run: postgresql: (pid 355) 700s; run: log: (pid 370) 697s run: prometheus: (pid 954) 129s; run: log: (pid 652) 643s run: puma: (pid 512) 683s; run: log: (pid 521) 680s run: redis: (pid 307) 712s; run: log: (pid 322) 709s run: redis-exporter: (pid 946) 130s; run: log: (pid 633) 651s run: sidekiq: (pid 525) 677s; run: log: (pid 546) 674s run: sshd: (pid 33) 728s; run: log: (pid 32) 728s I can't find anything unusual

now,I need help to solve this problem urgently

Edited by jiangliying