services:
  pgadmin4:
    container_name: ${CONTAINER_NAME}
    restart: always
    networks:
      - 1panel-network
    volumes:
      - pgadmin4-data:/var/lib/pgadmin
    ports:
      - "${PANEL_APP_PORT_HTTP}:80"
    environment:
      - PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
      - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
      - PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True
      - PGADMIN_CONFIG_CONSOLE_LOG_LEVEL=10
    image: dpage/pgadmin4:9.9
    labels:  
      createdBy: "Apps"

volumes:
  pgadmin4-data:

networks:  
  1panel-network:  
    external: true
