fix: add network

This commit is contained in:
BryantHe 2023-12-06 01:42:24 +08:00
parent 429ad614d2
commit 2fa0cefb8f
2 changed files with 15 additions and 2 deletions

View File

@ -14,8 +14,15 @@ services:
- MYSQL_USER=user - MYSQL_USER=user
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-mysql3306} - MYSQL_PASSWORD=${MYSQL_PASSWORD:-mysql3306}
restart: always restart: always
networks:
mysql_network:
volumes: volumes:
mysql_data: mysql_data:
driver: local driver: local
networks:
mysql_network:
driver: bridge

View File

@ -16,6 +16,8 @@ services:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-admin} RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-admin}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin} RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin}
restart: on-failure restart: on-failure
networks:
rabbitmq_network:
volumes: volumes:
@ -23,3 +25,7 @@ volumes:
driver: local driver: local
rabbitmq_log: rabbitmq_log:
driver: local driver: local
networks:
rabbitmq_network:
driver: bridge