Naposledy aktivní 1714461438

root revidoval tento gist 1714461438. Přejít na revizi

1 file changed, 11 insertions

docker-compose

@@ -37,3 +37,14 @@ services: # 为project定义服务
37 37 - './GITLAB_HOME/logs:/var/log/gitlab'
38 38 - './GITLAB_HOME/data:/var/opt/gitlab'
39 39 shm_size: '256m'
40 + gitea:
41 + image: gitea/gitea:1.21.11-rootless
42 + restart: always
43 + volumes:
44 + - ./gitea/data:/var/lib/gitea
45 + - ./gitea/config:/etc/gitea
46 + - /etc/timezone:/etc/timezone:ro
47 + - /etc/localtime:/etc/localtime:ro
48 + ports:
49 + - "3000:3000"
50 + - "2425:2222"

root revidoval tento gist 1714425796. Přejít na revizi

1 file changed, 39 insertions

docker-compose(vytvořil soubor)

@@ -0,0 +1,39 @@
1 + version: "3" # 表示该docker-compose.yml文件使用的是Version 3
2 + services: # 为project定义服务
3 + nginx: # 指定服务名称
4 + image: nginx # 指定服务所使用的镜像
5 + ports: # 暴露端口信息
6 + - 80:80
7 + volumes:
8 + - ./html:/usr/share/nginx/html
9 + - ./conf.d:/etc/nginx/conf.d
10 + - ./nginx.conf:/etc/nginx/nginx.conf
11 + - ./log:/var/log/nginx
12 + restart: always
13 + opengist:
14 + image: ghcr.io/thomiceli/opengist:1.7
15 + container_name: opengist
16 + restart: unless-stopped
17 + ports:
18 + - "6157:6157" # HTTP port
19 + #- "2222:2222" # SSH port, can be removed if you don't use SSH
20 + volumes:
21 + - "./opengist:/opengist"
22 + gitlab:
23 + image: gitlab/gitlab-ee:16.11.1-ee.0
24 + container_name: gitlab
25 + restart: unless-stopped
26 + hostname: 'gitlab.rdf.lol'
27 + environment:
28 + GITLAB_OMNIBUS_CONFIG: |
29 + external_url 'http://gitlab.rdf.lol:8929'
30 + gitlab_rails['gitlab_shell_ssh_port'] = 2424
31 + ports:
32 + - '8929:8929'
33 + - '443:443'
34 + - '2424:2424'
35 + volumes:
36 + - './GITLAB_HOME/config:/etc/gitlab'
37 + - './GITLAB_HOME/logs:/var/log/gitlab'
38 + - './GITLAB_HOME/data:/var/opt/gitlab'
39 + shm_size: '256m'
Novější Starší