您好我是Docker容器的新手。我有以下设置:
docker主机正在Linux服务器上运行,它正在运行4个应用程序:
所有这些都在 my-network
中运行这是问题所在,我想将进入反向代理的每个网址重新路由到它所假设的位置。限制是我无法重写反向代理,因为它不值得重写
以下是 docker-compose.yml 文件
version: '3'
services:
backend:
image: tomcat/test:first
ports:
- "8080:8080"
networks:
- my-network
volumes:
- "/home/lluo/app/myApp/target/MyApp/WEB-INF/classes/META-INF/config:/usr/local/tomcat/conf/myApp-configuration/"
depends_on:
- active_mq
active_mq:
image: active_mq/test:first
ports:
- "24043:24043"
networks:
- my-network
networks:
my-network:
external: true
version: '3'
services:
reverse_proxy:
container_name: proxy_container
image: reverse/proxy:docker
ports:
- "0.0.0.0:15009:15009"
networks:
- my-network
networks:
my-network:
external: true
version: '3'
services:
frontend:
image: template/frontend:after_merge_develop
container_name: fe_container
ports:
- "3000:3000"
networks:
- my-network
volumes:
- "/home/lluo/config.json:/app/dist/config.json"
networks:
my-network:
external: true
我将网络ipv4_address绑定为0.0.0.0
请帮我解决这个问题,已经过了好几天了。 非常感谢你!