linuxtool/Config/Docker/Nginx-proxy-manager.sh

22 lines
401 B
Bash
Raw Normal View History

2024-07-24 18:41:04 +08:00
#!/bin/bash
declare path=$1
declare port=$2
cd $path
cat > docker-compose.yml << EOF
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '${port}:81'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
EOF
docker compose up -d
2024-07-24 18:41:04 +08:00
echo "Email: admin@example.com"
echo "Password: changeme"