소스 검색

move pgadmin here

Pi 4 달 전
부모
커밋
a518f4fe57
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      docker-compose.yml

+ 17 - 0
docker-compose.yml

@@ -35,6 +35,23 @@ services:
     networks:
       - priv
 
+  admin:
+    image: dpage/pgadmin4
+    hostname: pgadmin
+    restart: unless-stopped
+    ports:
+      - 192.168.0.20:8089:80
+    expose:
+      - 80
+    environment:
+      PGADMIN_DEFAULT_EMAIL: pgadmin@shandan.one
+      PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
+      SCRIPT_NAME: /pgadmin4
+    volumes:
+      - ./pgadmin-data:/var/lib/pgadmin
+    networks:
+      - priv
+
 networks:
   priv:
     enable_ipv6: true