diff --git a/docker-compose-apisix.yml b/docker-compose-apisix.yml index 6fac5ad..2189890 100644 --- a/docker-compose-apisix.yml +++ b/docker-compose-apisix.yml @@ -15,7 +15,7 @@ # limitations under the License. # -version: "3" +version: "3.8" services: apisix-dashboard: @@ -47,7 +47,8 @@ services: - "9443:9443/tcp" - "9092:9092/tcp" networks: - apisix: + - apisix + - diyue-network etcd: image: bitnami/etcd:latest @@ -95,6 +96,9 @@ services: networks: apisix: driver: bridge + diyue-network: + driver: overlay + attachable: true volumes: etcd_data: diff --git a/docker-compose-mongodb.yml b/docker-compose-mongodb.yml index f8a4a47..ea4b093 100644 --- a/docker-compose-mongodb.yml +++ b/docker-compose-mongodb.yml @@ -1,4 +1,4 @@ -version: "3" +version: "3.8" services: mongodb: @@ -14,7 +14,8 @@ services: - MONGO_INITDB_ROOT_USERNAME=admin - MONGO_INITDB_ROOT_PASSWORD=mongodb27017 networks: - mongodb_network: + - mongodb_network + - diyue-network mongo-express: image: mongo-express hostname: mongo-express @@ -32,6 +33,9 @@ services: networks: mongodb_network: driver: bridge + diyue-network: + driver: overlay + attachable: true volumes: mongodb_data: diff --git a/docker-compose-rabbitmq.yml b/docker-compose-rabbitmq.yml index 378c76f..130ff2c 100644 --- a/docker-compose-rabbitmq.yml +++ b/docker-compose-rabbitmq.yml @@ -1,4 +1,4 @@ -version: "3" +version: "3.8" services: rabbitmq: @@ -17,7 +17,8 @@ services: RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin} restart: always networks: - rabbitmq_network: + - rabbitmq_network + - diyue-network volumes: @@ -28,4 +29,7 @@ volumes: networks: rabbitmq_network: - driver: bridge \ No newline at end of file + driver: bridge + diyue-network: + driver: overlay + attachable: true \ No newline at end of file diff --git a/docker-compose-redis.yml b/docker-compose-redis.yml index 7a6ecbc..555fc7b 100644 --- a/docker-compose-redis.yml +++ b/docker-compose-redis.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: "3.8" services: redis: @@ -12,11 +12,15 @@ services: volumes: - redis_data:/data networks: - redis_network: + - redis_network + - diyue-network networks: redis_network: driver: bridge + diyue-network: + driver: overlay + attachable: true volumes: redis_data: