fix: add diyue-network

This commit is contained in:
BryantHe 2024-02-04 17:27:41 +08:00
parent 93f5e8f976
commit d8a5d790b2
4 changed files with 25 additions and 9 deletions

View File

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
# #
version: "3" version: "3.8"
services: services:
apisix-dashboard: apisix-dashboard:
@ -47,7 +47,8 @@ services:
- "9443:9443/tcp" - "9443:9443/tcp"
- "9092:9092/tcp" - "9092:9092/tcp"
networks: networks:
apisix: - apisix
- diyue-network
etcd: etcd:
image: bitnami/etcd:latest image: bitnami/etcd:latest
@ -95,6 +96,9 @@ services:
networks: networks:
apisix: apisix:
driver: bridge driver: bridge
diyue-network:
driver: overlay
attachable: true
volumes: volumes:
etcd_data: etcd_data:

View File

@ -1,4 +1,4 @@
version: "3" version: "3.8"
services: services:
mongodb: mongodb:
@ -14,7 +14,8 @@ services:
- MONGO_INITDB_ROOT_USERNAME=admin - MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=mongodb27017 - MONGO_INITDB_ROOT_PASSWORD=mongodb27017
networks: networks:
mongodb_network: - mongodb_network
- diyue-network
mongo-express: mongo-express:
image: mongo-express image: mongo-express
hostname: mongo-express hostname: mongo-express
@ -32,6 +33,9 @@ services:
networks: networks:
mongodb_network: mongodb_network:
driver: bridge driver: bridge
diyue-network:
driver: overlay
attachable: true
volumes: volumes:
mongodb_data: mongodb_data:

View File

@ -1,4 +1,4 @@
version: "3" version: "3.8"
services: services:
rabbitmq: rabbitmq:
@ -17,7 +17,8 @@ services:
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin} RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin}
restart: always restart: always
networks: networks:
rabbitmq_network: - rabbitmq_network
- diyue-network
volumes: volumes:
@ -28,4 +29,7 @@ volumes:
networks: networks:
rabbitmq_network: rabbitmq_network:
driver: bridge driver: bridge
diyue-network:
driver: overlay
attachable: true

View File

@ -1,4 +1,4 @@
version: '3.8' version: "3.8"
services: services:
redis: redis:
@ -12,11 +12,15 @@ services:
volumes: volumes:
- redis_data:/data - redis_data:/data
networks: networks:
redis_network: - redis_network
- diyue-network
networks: networks:
redis_network: redis_network:
driver: bridge driver: bridge
diyue-network:
driver: overlay
attachable: true
volumes: volumes:
redis_data: redis_data: