#!/bin/bash
# 获取宿主机ip地址,防止ip动态变化导致访问不到文件
# echo -e
# echo '      MASTER_IP: '$(hostname -I | awk '{print $1}') >> docker-compose.yaml
echo $(hostname -I | awk '{print $1}') > url
docker compose up -d --remove-orphans
docker compose ps
