version: "3" # 表示该docker-compose.yml文件使用的是Version 3 services: # 为project定义服务 nginx: # 指定服务名称 image: nginx # 指定服务所使用的镜像 ports: # 暴露端口信息 - 80:80 volumes: - ./html:/usr/share/nginx/html - ./conf.d:/etc/nginx/conf.d - ./nginx.conf:/etc/nginx/nginx.conf - ./log:/var/log/nginx restart: always opengist: image: ghcr.io/thomiceli/opengist:1.7 container_name: opengist restart: unless-stopped ports: - "6157:6157" # HTTP port #- "2222:2222" # SSH port, can be removed if you don't use SSH volumes: - "./opengist:/opengist" gitlab: image: gitlab/gitlab-ee:16.11.1-ee.0 container_name: gitlab restart: unless-stopped hostname: 'gitlab.rdf.lol' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://gitlab.rdf.lol:8929' gitlab_rails['gitlab_shell_ssh_port'] = 2424 ports: - '8929:8929' - '443:443' - '2424:2424' volumes: - './GITLAB_HOME/config:/etc/gitlab' - './GITLAB_HOME/logs:/var/log/gitlab' - './GITLAB_HOME/data:/var/opt/gitlab' shm_size: '256m' gitea: image: gitea/gitea:1.21.11-rootless restart: always volumes: - ./gitea/data:/var/lib/gitea - ./gitea/config:/etc/gitea - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2425:2222"