From 9bc3ad356d962bcd42d3425755e9c54a84664699 Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Fri, 2 Aug 2024 08:58:23 +0800 Subject: [PATCH] small edit compose.yml --- docker/docker-compose.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 5446707..f459302 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,7 +1,16 @@ version: '3.8' +name: y9demo-tomcat services: - demo-tomcat-app: - image: svn.youshengyun.com:9923/demo-tomcat-jib:latest + y9demo-tomcat: + image: svn.youshengyun.com:9923/y9demo-tomcat-jib:latest restart: always + extra_hosts: + - "host.docker.internal:host-gateway" + networks: + - y9-share-net ports: - - "9080:8080" \ No newline at end of file + - "9080:8080" + +networks: + y9-share-net: + external: true \ No newline at end of file