D
Dokploy10mo ago
Pathik

Unable to access DB using Internal Connection URL

Hi, I have created a Postgres DB and it is working fine. In the same project, I have created another compose based Application (lets call it core). When I am trying to access the DB from core using Internal Connection URL, the system says it is not able to find the database. However, it works when I use External Connection URL. How can I resolve this without needing to use external connection url?
4 Replies
Pathik
PathikOP10mo ago
Ok, I think I found the issue. For anyone else with the same issue, make sure your docker containers all belong to the same network.
Wolftic
Wolftic10mo ago
Hello @Pathik, how did you manage to get them on the same network? When I set the network for my build I get:
network mode "dokploy-network" not supported by buildkit - you can define a custom network for your builder using the network driver-opt in buildx create
network mode "dokploy-network" not supported by buildkit - you can define a custom network for your builder using the network driver-opt in buildx create
Pathik
PathikOP10mo ago
services:
my-app:
image: my-image
ports:
- "22:22"
volumes:
- ./home:/home
networks:
- dokploy-network

networks:
dokploy-network:
external: true
services:
my-app:
image: my-image
ports:
- "22:22"
volumes:
- ./home:/home
networks:
- dokploy-network

networks:
dokploy-network:
external: true
If this is how your compose looks, share your compose file here
Wolftic
Wolftic10mo ago
I found out that during build you can't connect to the dokploy-network

Did you find this page helpful?