docker-compose
· 1.5 KiB · Text
原始文件
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"
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' |
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" |
51 |