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