Hi to all
I searched about communication by name from container in same docker compose but I couldn’t find anything
i have a docker-compose with a mariadb container and a simple debian server:
version: "3" services: db: image: linuxserver/mariadb:10.11.4 container_name: testsrv-db environment: - PUID=1000 - PGID=1000 - MYSQL_ROOT_PASSWORD=rootpass - TZ=Europe/Rome volumes: - ./data:/config restart: unless-stopped testsrv: image: test/testsrv container_name: testsrv hostname: testsrv network_mode: host depends_on: - db restart: unless-stopped
how can i reach db from testsrv container with ping to db name?
thanks in advance