Browse Source

no need to publish ports

Pi 3 weeks ago
parent
commit
582b80d1a0
1 changed files with 2 additions and 6 deletions
  1. 2 6
      docker-compose.yml

+ 2 - 6
docker-compose.yml

@@ -5,7 +5,7 @@ x-podman:
 services:
   web:
     image: docker.io/lovasoa/sqlpage:latest
-    hostname: util-sqlpage
+    hostname: util-web
     user: "1000:1000"
     userns_mode: "keep-id:uid=1000,gid=1000"
     volumes:
@@ -13,8 +13,6 @@ services:
       - /etc/localtime:/etc/localtime:ro
       - ./util-sqlpage/:/var/www/
       - ./util-sqlpage/sqlpage:/etc/sqlpage:ro
-    ports:
-      - 192.168.0.20:8091:8080
     expose:
       - 8080
     networks:
@@ -23,14 +21,12 @@ services:
 
   proxy:
     image: util-pyapi
-    hostname: util-pyapi
+    hostname: util-proxy
     build:
       context: .
       dockerfile: rest/Dockerfile
     volumes:
       - ./util-sqlpage/util.db:/usr/src/app/util.db:ro
-    ports:
-      - 192.168.0.20:6771:6772
     expose:
       - 6772
     networks: