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_PASSWORD=${MYSQL_PASSWORD:-mysql3306}
restart: always
networks:
mysql_network:
volumes:
mysql_data:
driver: local
driver: local
networks:
mysql_network:
driver: bridge

View File

@ -16,10 +16,16 @@ services:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-admin}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin}
restart: on-failure
networks:
rabbitmq_network:
volumes:
rabbitmq_data:
driver: local
rabbitmq_log:
driver: local
driver: local
networks:
rabbitmq_network:
driver: bridge