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