mirror of
https://github.com/acepanel/templates.git
synced 2026-02-04 02:07:12 +08:00
23 lines
526 B
YAML
23 lines
526 B
YAML
services:
|
|
nginx:
|
|
image: nginx:1.29.4-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- ${NGINX_PORT_HTTP}:80
|
|
- ${NGINX_PORT_HTTPS}:443
|
|
volumes:
|
|
- ./html:/usr/share/nginx/html
|
|
- ./conf.d:/etc/nginx/conf.d
|
|
- ./certs:/etc/nginx/certs
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "curl -fsSL http://localhost:80 || exit 1" ]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- acepanel-network
|
|
networks:
|
|
acepanel-network:
|
|
external: true
|