add gateway

This commit is contained in:
chenc 2023-11-27 16:04:55 +08:00
parent a9bd847cbc
commit 6d44f4b40e

View File

@ -21,6 +21,8 @@ services:
volumes: volumes:
- "${WWWROOT_PATH}:/data/wwwroot" - "${WWWROOT_PATH}:/data/wwwroot"
working_dir: /data/wwwroot/ working_dir: /data/wwwroot/
extra_hosts:
- "host.docker.internal:host-gateway"
privileged: true privileged: true
networks: networks:
aix-docker-cc: aix-docker-cc:
@ -54,6 +56,8 @@ services:
nofile: nofile:
soft: 65536 soft: 65536
hard: 65536 hard: 65536
extra_hosts:
- "host.docker.internal:host-gateway"
networks: networks:
aix-docker-cc: aix-docker-cc:
ipv4_address: ${NET_SUBNET:-10.12.25}.10 ipv4_address: ${NET_SUBNET:-10.12.25}.10
@ -74,6 +78,8 @@ services:
- "./openresty/config/conf:/usr/local/openresty/nginx/conf" - "./openresty/config/conf:/usr/local/openresty/nginx/conf"
- "./openresty/config/vhost:/usr/local/openresty/nginx/conf/vhost" - "./openresty/config/vhost:/usr/local/openresty/nginx/conf/vhost"
- "./openresty/config/rewrite:/usr/local/openresty/nginx/conf/rewrite" - "./openresty/config/rewrite:/usr/local/openresty/nginx/conf/rewrite"
extra_hosts:
- "host.docker.internal:host-gateway"
networks: networks:
aix-docker-cc: aix-docker-cc:
ipv4_address: ${NET_SUBNET:-10.12.25}.2 ipv4_address: ${NET_SUBNET:-10.12.25}.2
@ -101,6 +107,8 @@ services:
timeout: 3s timeout: 3s
retries: 30 retries: 30
start_period: 30s start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
networks: networks:
aix-docker-cc: aix-docker-cc:
ipv4_address: ${NET_SUBNET:-10.12.25}.3 ipv4_address: ${NET_SUBNET:-10.12.25}.3
@ -129,6 +137,8 @@ services:
timeout: 3s timeout: 3s
retries: 30 retries: 30
start_period: 30s start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on: depends_on:
- elasticsearch - elasticsearch
- redis - redis
@ -156,6 +166,8 @@ services:
timeout: 3s timeout: 3s
retries: 30 retries: 30
start_period: 30s start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on: depends_on:
- elasticsearch - elasticsearch
- redis - redis
@ -184,6 +196,8 @@ services:
timeout: 3s timeout: 3s
retries: 30 retries: 30
start_period: 30s start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy