I try to build docker-compose file that will create DB, Ghost and phpmyadmin containers and they need to be on separate networks. I define network as normal, but when i run compose file all containers goes to the same network “backend_ghost”. I try with frontend_ghost:8080:80 and frontend_ghost:8081:2368 , but I get “error no Ip address”. Is there way to define on witch network container to expose port?
# see https://ghost.org/docs/config/#configuration-options
# this url value is just an example, and is likely wrong for your environment!
This docker-compose is deploy in portainer.
When i create portainer stack all containers goes to same network. What i need is this two with exposed ports to be in frontend_ghost network, but also to access DB thru backend_ghost network.