refactor(docker-compose): rename containers to prevent duplicate names

This commit is contained in:
Vladislav Syrochkin 2025-04-03 11:12:28 +05:00
parent ff265ce1d4
commit 8b62b8b7a6

View File

@ -3,13 +3,13 @@ version: "3.1"
services: services:
rabbitmq: rabbitmq:
image: rabbitmq:4-management-alpine image: rabbitmq:4-management-alpine
container_name: rabbitmq container_name: rabbitmq-connect
ports: ports:
- 5672:5672 - 5672:5672
- 15672:15672 - 15672:15672
db: db:
image: mysql:8.0 image: mysql:8.0
container_name: mysql container_name: mysql-connect
environment: environment:
MYSQL_ROOT_PASSWORD: hackme MYSQL_ROOT_PASSWORD: hackme
MYSQL_DATABASE: connect_test MYSQL_DATABASE: connect_test
@ -21,7 +21,7 @@ services:
- "3306:3306" - "3306:3306"
redis: redis:
image: redis:7-alpine image: redis:7-alpine
container_name: redis container_name: redis-connect
command: redis-server --requirepass password command: redis-server --requirepass password
environment: environment:
REDIS_PASSWORD: hackme REDIS_PASSWORD: hackme