linuxtool/Config/Docker/Softwares/nginx-proxy-manager.sh
2024-09-26 10:53:51 +08:00

22 lines
401 B
Bash

#!/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
echo "Email: admin@example.com"
echo "Password: changeme"