websoft9/docker/w9proxy/docker-compose.yml

30 lines
655 B
YAML
Raw Normal View History

2023-03-31 08:25:18 +08:00
# image: https://hub.docker.com/r/jc21/nginx-proxy-manager
# docs: https://nginxproxymanager.com/guide/#quick-setup
version: "3.8"
services:
app:
image: jc21/nginx-proxy-manager:${APP_VERSION}
2023-09-18 17:13:15 +08:00
restart: always
2023-03-31 08:25:18 +08:00
container_name: ${APP_NAME}
ports:
- "80:80"
- "443:443"
2023-09-18 17:13:15 +08:00
- "9001-9999:81"
2023-03-31 08:25:18 +08:00
volumes:
- nginx_data:/data
- nginx_letsencrypt:/etc/letsencrypt
2023-09-18 17:13:15 +08:00
labels:
com.docker.compose.w9_http.port: 80
com.docker.compose.w9_https.port: 443
com.docker.compose.w9_console.port: 81
2023-03-31 08:25:18 +08:00
networks:
default:
name: ${APP_NETWORK}
external: true
volumes:
nginx_data:
2023-09-18 17:13:15 +08:00
nginx_letsencrypt: