启动服务:
docker-compose up -d
测试访问:
curl http://localhost:8080
或在浏览器打开 http://localhost:8080
容器内预创建了以下测试文件:
停止服务:
docker-compose down
重启服务:
docker-compose restart
重新构建并启动:
docker-compose up -d --build