Cross platform nginx image with nginx_upstream_check_module module
300
The free version of nginx's built-in image does not have the nginx_upstream_check_module module, so you need to create your own nginx image.
The version used is nginx-1.29.3 and nginx_upstream_check_rodule-0.4.0.
name: 'nginx-proxy'
services:
nginx-proxy:
# ucm: upstream_check_module
image: 'zqh2021/ucm-nginx:1.29.3.1'
build:
context: .
dockerfile: Dockerfile
platforms:
- linux/arm64
container_name: nginx-proxy
restart: unless-stopped
network_mode: bridge
ports:
- '80:80'
- '443:443'
volumes:
- ./cert/:/etc/nginx/cert/
- ./nginx.conf:/etc/nginx/nginx.conf
- ./conf.d/:/etc/nginx/conf.d/
- ./log:/var/log/nginx/
nginx自带的镜像免费版本没有nginx_upstream_check_module模块,所以自建nginx 镜像。
使用的版本是 nginx-1.29.3、nginx_upstream_check_module-0.4.0。
参考上面的示例
Content type
Image
Digest
sha256:f60d16c35…
Size
5.4 MB
Last updated
10 months ago
docker pull zqh2021/ucm-nginx:1.27.5.1