nginx
· 6.8 KiB · Nginx configuration file
原始檔案
version: "3" # 表示该docker-compose.yml文件使用的是Version 3
services: # 为project定义服务
nginx: # 指定服务名称
image: nginx # 指定服务所使用的镜像
ports: # 暴露端口信息
- 80:80
- 8080:8080
- 443:443
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"
memos:
image: hub.aiursoft.cn/ghcr.io/usememos/memos:latest
container_name: memos
ports:
- 5230:5230
volumes:
- "./memos:/var/opt/memos"
restart: unless-stopped
drawio:
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jgraph/drawio:24.7.5
container_name: drawio
restart: unless-stopped
ports:
- 28080:8080
- 28443:8443
volumes:
- ./drawio:/drawio
environment:
PUBLIC_DNS: domain
ORGANISATION_UNIT: unit
ORGANISATION: org
CITY: city
STATE: state
COUNTRY_CODE: country
healthcheck:
test: ["CMD-SHELL", "curl -f http://domain:28080 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 5
start_period: 10s
tracer:
image: hub.aiursoft.cn/aiursoft/tracer
container_name: tracer
restart: unless-stopped
ports:
- "666:5000"
volumes:
- ./tracer:/data
kanboard:
image: kanboard/kanboard
restart: always
ports:
- 667:80
volumes:
- ./kanboard/kanboard_data:/var/www/app/data
- ./kanboard/kanboard_plugins:/var/www/app/plugins
- ./kanboard/kanboard_ssl:/etc/nginx/ssl
cozy:
image: cozy/cozy-stack
restart: always
ports:
- "668:80"
environment:
- COZY_ADMIN_PASSWORD=source2017
volumes:
- './cozy-data:/mnt/cozy' # 使用 Docker Volume 存储数据
gitlab:
image: gitlab/gitlab-ee
container_name: gitlab
restart: always
hostname: 'gitlab.ruasoft.cn'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.ruasoft.cn:80'
gitlab_rails['gitlab_shell_ssh_port'] = 2202
ports:
- '8280:80'
- '8443:443'
- '2202:22'
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"
logseq:
image: ghcr.io/logseq/logseq-webapp
container_name: logseq
ports:
- "13000:80"
volumes:
- ./Logseq_data:/data
environment:
- LANG=zh_CN.UTF-8
- LOGSEQ_HOME=/data
restart: always
blog:
image: hub.aiursoft.cn/aiursoft/moongladepure
restart: unless-stopped
ports:
- 5002:5000
volumes:
- ./moongladepure/www/data:/data
manhours:
image: hub.aiursoft.cn/aiursoft/manhours
restart: unless-stopped
ports:
- "5003:5000"
volumes:
- ./manhours:/data
#documentserver:
# image: onlyoffice/documentserver
# restart: unless-stopped
# volumes:
# - ./onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
# ports:
# - 880:80
registry-ui:
depends_on:
- registry-server
image: joxit/docker-registry-ui:main
restart: always
ports:
- target: 81
published: 81
protocol: tcp
mode: host
environment:
- SINGLE_REGISTRY=false
- REGISTRY_TITLE=Docker Registry UI
- DELETE_IMAGES=true
- SHOW_CONTENT_DIGEST=true
- NGINX_PROXY_PASS_URL=http://registry-server:5000
- SHOW_CATALOG_NB_TAGS=true
- CATALOG_MIN_BRANCHES=1
- CATALOG_MAX_BRANCHES=1
- TAGLIST_PAGE_SIZE=100
- REGISTRY_SECURED=false
- CATALOG_ELEMENTS_LIMIT=1000
container_name: registry-ui
registry-server:
image: hub.aiursoft.cn/registry:2
restart: always
ports:
- "5000:5000"
environment:
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://registry.ruasoft.cn]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]'
REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]'
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
volumes:
- ./docker-registry/data:/var/lib/registry
container_name: registry-server
remotely:
image: immybot/remotely:latest
container_name: remotely
volumes:
- ./remotely:/app/AppData
restart: unless-stopped
ports:
- "58089:58089"
networks:
- remotely
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTP_PORTS=58089
# Other ASP.NET Core configurations can be overridden here, such as Logging.
# See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
- Serilog__MinimumLevel__Override__Microsoft.AspNetCore=Warning
- Serilog__MinimumLevel__Override__System=Warning
# Values for DbProvider are SQLite, SQLServer, and PostgreSQL.
- Remotely_ApplicationOptions__DbProvider=SQLite
# The Docker gateway will be used in Forwarded Headers, which is necessary to
# to correctly determine request hostname and scheme within the app. If you change
# the network config, you must update this value as well.
- Remotely_ApplicationOptions__DockerGateway=172.28.0.1
# This path shouldn't be changed. It points to the Docker volume.
- Remotely_ConnectionStrings__SQLite=Data Source=/app/AppData/Remotely.db
# If using SQL Server, change the connection string to point to your SQL Server instance.
- Remotely_ConnectionStrings__SQLServer=Server=(localdb)\\mssqllocaldb;Database=Remotely-Server-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true
# If using PostgreSQL, change the connection string to point to your PostgreSQL instance.
- Remotely_ConnectionStrings__PostgreSQL=Server=Host=localhost;Database=Remotely;Username=postgres;
networks:
net:
driver: overlay
# gitlab:
# name: gitlab-network
remotely:
name: remotely-network
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
gateway: 172.28.0.1
1 | version: "3" # 表示该docker-compose.yml文件使用的是Version 3 |
2 | services: # 为project定义服务 |
3 | nginx: # 指定服务名称 |
4 | image: nginx # 指定服务所使用的镜像 |
5 | ports: # 暴露端口信息 |
6 | - 80:80 |
7 | - 8080:8080 |
8 | - 443:443 |
9 | volumes: |
10 | - ./html:/usr/share/nginx/html |
11 | - ./conf.d:/etc/nginx/conf.d |
12 | - ./nginx.conf:/etc/nginx/nginx.conf |
13 | - ./log:/var/log/nginx |
14 | restart: always |
15 | |
16 | opengist: |
17 | image: ghcr.io/thomiceli/opengist:1.7 |
18 | container_name: opengist |
19 | restart: unless-stopped |
20 | ports: |
21 | - "6157:6157" # HTTP port |
22 | #- "2222:2222" # SSH port, can be removed if you don't use SSH |
23 | volumes: |
24 | - "./opengist:/opengist" |
25 | memos: |
26 | image: hub.aiursoft.cn/ghcr.io/usememos/memos:latest |
27 | container_name: memos |
28 | ports: |
29 | - 5230:5230 |
30 | volumes: |
31 | - "./memos:/var/opt/memos" |
32 | restart: unless-stopped |
33 | drawio: |
34 | image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jgraph/drawio:24.7.5 |
35 | container_name: drawio |
36 | restart: unless-stopped |
37 | ports: |
38 | - 28080:8080 |
39 | - 28443:8443 |
40 | volumes: |
41 | - ./drawio:/drawio |
42 | environment: |
43 | PUBLIC_DNS: domain |
44 | ORGANISATION_UNIT: unit |
45 | ORGANISATION: org |
46 | CITY: city |
47 | STATE: state |
48 | COUNTRY_CODE: country |
49 | healthcheck: |
50 | test: ["CMD-SHELL", "curl -f http://domain:28080 || exit 1"] |
51 | interval: 1m30s |
52 | timeout: 10s |
53 | retries: 5 |
54 | start_period: 10s |
55 | tracer: |
56 | image: hub.aiursoft.cn/aiursoft/tracer |
57 | container_name: tracer |
58 | restart: unless-stopped |
59 | ports: |
60 | - "666:5000" |
61 | volumes: |
62 | - ./tracer:/data |
63 | kanboard: |
64 | image: kanboard/kanboard |
65 | restart: always |
66 | ports: |
67 | - 667:80 |
68 | volumes: |
69 | - ./kanboard/kanboard_data:/var/www/app/data |
70 | - ./kanboard/kanboard_plugins:/var/www/app/plugins |
71 | - ./kanboard/kanboard_ssl:/etc/nginx/ssl |
72 | cozy: |
73 | image: cozy/cozy-stack |
74 | restart: always |
75 | ports: |
76 | - "668:80" |
77 | environment: |
78 | - COZY_ADMIN_PASSWORD=source2017 |
79 | volumes: |
80 | - './cozy-data:/mnt/cozy' # 使用 Docker Volume 存储数据 |
81 | gitlab: |
82 | image: gitlab/gitlab-ee |
83 | container_name: gitlab |
84 | restart: always |
85 | hostname: 'gitlab.ruasoft.cn' |
86 | environment: |
87 | GITLAB_OMNIBUS_CONFIG: | |
88 | external_url 'http://gitlab.ruasoft.cn:80' |
89 | gitlab_rails['gitlab_shell_ssh_port'] = 2202 |
90 | ports: |
91 | - '8280:80' |
92 | - '8443:443' |
93 | - '2202:22' |
94 | volumes: |
95 | - './GITLAB_HOME/config:/etc/gitlab' |
96 | - './GITLAB_HOME/logs:/var/log/gitlab' |
97 | - './GITLAB_HOME/data:/var/opt/gitlab' |
98 | shm_size: '256m' |
99 | gitea: |
100 | image: gitea/gitea:1.21.11-rootless |
101 | restart: always |
102 | volumes: |
103 | - ./gitea/data:/var/lib/gitea |
104 | - ./gitea/config:/etc/gitea |
105 | - /etc/timezone:/etc/timezone:ro |
106 | - /etc/localtime:/etc/localtime:ro |
107 | ports: |
108 | - "3000:3000" |
109 | - "2425:2222" |
110 | logseq: |
111 | image: ghcr.io/logseq/logseq-webapp |
112 | container_name: logseq |
113 | ports: |
114 | - "13000:80" |
115 | volumes: |
116 | - ./Logseq_data:/data |
117 | environment: |
118 | - LANG=zh_CN.UTF-8 |
119 | - LOGSEQ_HOME=/data |
120 | restart: always |
121 | blog: |
122 | image: hub.aiursoft.cn/aiursoft/moongladepure |
123 | restart: unless-stopped |
124 | ports: |
125 | - 5002:5000 |
126 | volumes: |
127 | - ./moongladepure/www/data:/data |
128 | manhours: |
129 | image: hub.aiursoft.cn/aiursoft/manhours |
130 | restart: unless-stopped |
131 | ports: |
132 | - "5003:5000" |
133 | volumes: |
134 | - ./manhours:/data |
135 | #documentserver: |
136 | # image: onlyoffice/documentserver |
137 | # restart: unless-stopped |
138 | # volumes: |
139 | # - ./onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data |
140 | # ports: |
141 | # - 880:80 |
142 | registry-ui: |
143 | depends_on: |
144 | - registry-server |
145 | image: joxit/docker-registry-ui:main |
146 | restart: always |
147 | ports: |
148 | - target: 81 |
149 | published: 81 |
150 | protocol: tcp |
151 | mode: host |
152 | |
153 | environment: |
154 | - SINGLE_REGISTRY=false |
155 | - REGISTRY_TITLE=Docker Registry UI |
156 | - DELETE_IMAGES=true |
157 | - SHOW_CONTENT_DIGEST=true |
158 | - NGINX_PROXY_PASS_URL=http://registry-server:5000 |
159 | - SHOW_CATALOG_NB_TAGS=true |
160 | - CATALOG_MIN_BRANCHES=1 |
161 | - CATALOG_MAX_BRANCHES=1 |
162 | - TAGLIST_PAGE_SIZE=100 |
163 | - REGISTRY_SECURED=false |
164 | - CATALOG_ELEMENTS_LIMIT=1000 |
165 | container_name: registry-ui |
166 | registry-server: |
167 | image: hub.aiursoft.cn/registry:2 |
168 | restart: always |
169 | ports: |
170 | - "5000:5000" |
171 | environment: |
172 | REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[https://registry.ruasoft.cn]' |
173 | REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]' |
174 | REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]' |
175 | REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]' |
176 | REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]' |
177 | REGISTRY_STORAGE_DELETE_ENABLED: 'true' |
178 | volumes: |
179 | - ./docker-registry/data:/var/lib/registry |
180 | container_name: registry-server |
181 | |
182 | remotely: |
183 | image: immybot/remotely:latest |
184 | container_name: remotely |
185 | volumes: |
186 | - ./remotely:/app/AppData |
187 | restart: unless-stopped |
188 | ports: |
189 | - "58089:58089" |
190 | networks: |
191 | - remotely |
192 | environment: |
193 | - ASPNETCORE_ENVIRONMENT=Production |
194 | - ASPNETCORE_HTTP_PORTS=58089 |
195 | # Other ASP.NET Core configurations can be overridden here, such as Logging. |
196 | # See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0 |
197 | - Serilog__MinimumLevel__Override__Microsoft.AspNetCore=Warning |
198 | - Serilog__MinimumLevel__Override__System=Warning |
199 | |
200 | # Values for DbProvider are SQLite, SQLServer, and PostgreSQL. |
201 | - Remotely_ApplicationOptions__DbProvider=SQLite |
202 | # The Docker gateway will be used in Forwarded Headers, which is necessary to |
203 | # to correctly determine request hostname and scheme within the app. If you change |
204 | # the network config, you must update this value as well. |
205 | - Remotely_ApplicationOptions__DockerGateway=172.28.0.1 |
206 | # This path shouldn't be changed. It points to the Docker volume. |
207 | - Remotely_ConnectionStrings__SQLite=Data Source=/app/AppData/Remotely.db |
208 | # If using SQL Server, change the connection string to point to your SQL Server instance. |
209 | - Remotely_ConnectionStrings__SQLServer=Server=(localdb)\\mssqllocaldb;Database=Remotely-Server-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true |
210 | # If using PostgreSQL, change the connection string to point to your PostgreSQL instance. |
211 | - Remotely_ConnectionStrings__PostgreSQL=Server=Host=localhost;Database=Remotely;Username=postgres; |
212 | networks: |
213 | net: |
214 | driver: overlay |
215 | # gitlab: |
216 | # name: gitlab-network |
217 | remotely: |
218 | name: remotely-network |
219 | driver: bridge |
220 | ipam: |
221 | config: |
222 | - subnet: 172.28.0.0/16 |
223 | gateway: 172.28.0.1 |