From 6d44f4b40e1e6ee0050104357705e9f8dd774048 Mon Sep 17 00:00:00 2001 From: chenc <1458513@qq.com> Date: Mon, 27 Nov 2023 16:04:55 +0800 Subject: [PATCH] add gateway --- docker-compose.yaml.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compose.yaml.example b/docker-compose.yaml.example index e53b453..3afbe98 100644 --- a/docker-compose.yaml.example +++ b/docker-compose.yaml.example @@ -21,6 +21,8 @@ services: volumes: - "${WWWROOT_PATH}:/data/wwwroot" working_dir: /data/wwwroot/ + extra_hosts: + - "host.docker.internal:host-gateway" privileged: true networks: aix-docker-cc: @@ -54,6 +56,8 @@ services: nofile: soft: 65536 hard: 65536 + extra_hosts: + - "host.docker.internal:host-gateway" networks: aix-docker-cc: ipv4_address: ${NET_SUBNET:-10.12.25}.10 @@ -74,6 +78,8 @@ services: - "./openresty/config/conf:/usr/local/openresty/nginx/conf" - "./openresty/config/vhost:/usr/local/openresty/nginx/conf/vhost" - "./openresty/config/rewrite:/usr/local/openresty/nginx/conf/rewrite" + extra_hosts: + - "host.docker.internal:host-gateway" networks: aix-docker-cc: ipv4_address: ${NET_SUBNET:-10.12.25}.2 @@ -101,6 +107,8 @@ services: timeout: 3s retries: 30 start_period: 30s + extra_hosts: + - "host.docker.internal:host-gateway" networks: aix-docker-cc: ipv4_address: ${NET_SUBNET:-10.12.25}.3 @@ -129,6 +137,8 @@ services: timeout: 3s retries: 30 start_period: 30s + extra_hosts: + - "host.docker.internal:host-gateway" depends_on: - elasticsearch - redis @@ -156,6 +166,8 @@ services: timeout: 3s retries: 30 start_period: 30s + extra_hosts: + - "host.docker.internal:host-gateway" depends_on: - elasticsearch - redis @@ -184,6 +196,8 @@ services: timeout: 3s retries: 30 start_period: 30s + extra_hosts: + - "host.docker.internal:host-gateway" depends_on: redis: condition: service_healthy