Let your web app talk to Redis and PostgreSQL without opening host ports.
Step-by-Step Instructions
- Create a custom bridge network: docker network create app_net.
- Attach both containers to app_net and reference each other by container name.
docker network create app_net
# Inside app .env:
REDIS_HOST=redis_containerPro Tip: Custom bridge networks provide built-in DNS resolution between containers.
Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.