[修改]修改网络模式为host,调整了各个服务的网络地址
This commit is contained in:
@@ -5,7 +5,7 @@ FROM openeuler/openeuler:24.03 AS dev
|
||||
|
||||
# 更新系统和安装软件包
|
||||
RUN dnf update -y && \
|
||||
dnf install -y git php-cli php-bcmath php-mbstring php-pdo php-pecl-zip php-opcache php-sodium php-intl php-pear php-devel c-ares-devel libcurl-devel openssl-devel brotli brotli-devel net-tools && \
|
||||
dnf install -y git php-cli php-bcmath php-mbstring php-pdo php-pecl-zip php-opcache php-sodium php-intl php-pear php-devel c-ares-devel libcurl-devel openssl-devel brotli brotli-devel net-tools NetworkManager && \
|
||||
dnf clean all && \
|
||||
rm -rf /var/cache/dnf/*
|
||||
|
||||
@@ -43,7 +43,7 @@ RUN npm config set registry https://registry.npmmirror.com && \
|
||||
|
||||
FROM openeuler/openeuler:24.03 AS runtime
|
||||
RUN dnf update -y \
|
||||
&& dnf install php-cli php-bcmath php-mbstring php-pdo php-pecl-zip php-posix php-sodium php-xml php-intl php-opcache c-ares libcurl openssl brotli net-tools -y \
|
||||
&& dnf install php-cli php-bcmath php-mbstring php-pdo php-pecl-zip php-posix php-sodium php-xml php-intl php-opcache c-ares libcurl openssl brotli net-tools NetworkManager -y \
|
||||
&& dnf clean all && rm -rf /var/cache/dnf/*
|
||||
|
||||
RUN mkdir -p /usr/lib64/php/modules/
|
||||
|
||||
@@ -6,7 +6,7 @@ use GuzzleHttp\Client;
|
||||
class EtcdService
|
||||
{
|
||||
protected $client;
|
||||
protected $baseUri = 'http://etcd:2379/v3/'; // etcd 默认地址
|
||||
protected $baseUri = 'http://127.0.0.1:2379/v3/'; // etcd 默认地址
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ use GuzzleHttp\Client;
|
||||
class PrometheusService
|
||||
{
|
||||
protected $client;
|
||||
protected $baseUri = 'http://prometheus:9090/api/v1/'; // Prometheus 的默认地址
|
||||
protected $baseUri = 'http://127.0.0.1:9090/api/v1/'; // Prometheus 的默认地址
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user