Update docker-compose.yaml.example
This commit is contained in:
parent
84028baa64
commit
f54627e5ff
@ -7,8 +7,8 @@ networks:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- gateway: ${NET_SUBNET:-10.12.25}.1
|
||||
subnet: ${NET_SUBNET:-10.12.25}.0/24
|
||||
- gateway: ${NET_SUBNET:-10.12.25}.1
|
||||
subnet: ${NET_SUBNET:-10.12.25}.0/24
|
||||
driver_opts:
|
||||
com.docker.network.bridge.name: aix-docker-cc
|
||||
|
||||
@ -51,8 +51,8 @@ services:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.10
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.10
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
@ -71,8 +71,8 @@ services:
|
||||
- "./openresty/config/vhost:/usr/local/openresty/nginx/conf/vhost"
|
||||
- "./openresty/config/rewrite:/usr/local/openresty/nginx/conf/rewrite"
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.2
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.2
|
||||
depends_on:
|
||||
- php74
|
||||
- php73
|
||||
@ -90,16 +90,16 @@ services:
|
||||
- "./redis/redis.conf:/etc/redis/redis.conf"
|
||||
- "./redis/data:/data/db"
|
||||
- "./logs/redis:/data/logs"
|
||||
command: ["redis-server","/etc/redis/redis.conf"]
|
||||
command: [ "redis-server", "/etc/redis/redis.conf" ]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
start-period: 30s
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.3
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.3
|
||||
|
||||
php73:
|
||||
image: ${IMAGE_BASE}/php:7.3
|
||||
@ -110,10 +110,16 @@ services:
|
||||
- "./php/php73/etc:/usr/local/etc"
|
||||
working_dir: /data/wwwroot/
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.73
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.73
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--fail","http://${NET_SUBNET:-10.12.25}.1/ping_73"]
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"curl",
|
||||
"--fail",
|
||||
"http://${NET_SUBNET:-10.12.25}.1/ping_73"
|
||||
]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
@ -133,10 +139,16 @@ services:
|
||||
- "./php/php74/etc:/usr/local/etc"
|
||||
working_dir: /data/wwwroot/
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.74
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.74
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--fail","http://${NET_SUBNET:-10.12.25}.1/ping_74"]
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"curl",
|
||||
"--fail",
|
||||
"http://${NET_SUBNET:-10.12.25}.1/ping_74"
|
||||
]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
@ -154,10 +166,16 @@ services:
|
||||
- "./php/php81/etc:/usr/local/etc"
|
||||
working_dir: /data/wwwroot/
|
||||
networks:
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.81
|
||||
aix-docker-cc:
|
||||
ipv4_address: ${NET_SUBNET:-10.12.25}.81
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--fail","http://${NET_SUBNET:-10.12.25}.1/ping_81"]
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"curl",
|
||||
"--fail",
|
||||
"http://${NET_SUBNET:-10.12.25}.1/ping_81"
|
||||
]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user