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.
#
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:

View File

@ -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:

View File

@ -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:
@ -29,3 +30,6 @@ volumes:
networks:
rabbitmq_network:
driver: bridge
diyue-network:
driver: overlay
attachable: true

View File

@ -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: