Подскажите пожалуйста, я запускаю отдельный контейнер phpmyadmin + mysql, как я могу подключить другие контейнеры к контейнеру с phpmyadmin + mysql
docker-compose-yml (Контейнер для Laravel)
version: '3'
services:
app:
container_name: dev.doment.ru
build:
context: .
dockerfile: Dockerfile
volumes:
- ./production/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- yelm-service
composer:
container_name: composer
image: composer
command: /bin/bash "/app/commands/production/start-composer.sh"
volumes:
- ./:/app
networks:
- yelm-service
npm:
container_name: npm
image: node:14.1.0-slim
command: /bin/bash "/var/www/containers/dev/commands/production/start-npm.sh"
volumes:
- ./:/var/www/containers/dev
networks:
- yelm-service
nginx:
container_name: nginx
image: nginx:alpine
ports:
- 8081:80
volumes:
- ./:/var/www/containers/dev
- ./production/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- yelm-service
networks:
yelm-service:
volumes:
data:
driver: local
docker-compose-yml (Контейнер для PhpMyAdmin и MySQL)
version: "3.7"
services:
mysql:
image: mysql:8.0.19
container_name: mysql
volumes:
- ./mysql:/var/lib/mysql
networks:
- yelm-service
environment:
MYSQL_ROOT_PASSWORD: RecodeGET200
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.0.4
container_name: phpmyadmin
restart: always
networks:
- yelm-service
ports:
- "8080:80"
environment:
PMA_HOST: mysql
depends_on:
- mysql
networks:
yelm-service: