安装docker,docker-compose1234567891011121314#安装dockerwget -qO- get.docker.com | bash#检验docker安装成功docker -v#启动dockersystemctl enable docker#安装docker-composesudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose#添加可执行权限:xsudo chmod +x /usr/local/bin/docker-compose#在/usr/bin/路径下创建软连接ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose#检验docker-copose安装成功docker-compose --versiondocker-compose代码:12345678910version: '3.3'services: uptime-kuma: image: louislam/uptime-kuma container_name: uptime-kuma volumes: - ./uptime-kuma:/app/data ports: - 3001:3001宝塔用户的话,添加下面的配置到nginx配置文件里12345678location / {proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://127.0.0.1:3001/;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}访问http://ip:3001